列合并

function merge(colModels){
    var $table = $("#"+gridPro.tabID+"_list");
    $.each(colModels,function(i,col){
    if(col.uiextension && col.uiextension.isMerge && col.uiextension.isMerge == 'true'){
            var $td = '',rowsp = 1;
            $table.find('tr').each(function(ii,itr){
	        if(ii == 0){
	           $td = $(itr).find('td').eq(i+1);
                }else{
                    var $newtdText = $(itr).find('td').eq(i+1);
                    if($td.text() === $newtdText.text()){
                        rowsp++;
                        $newtdText.hide();
                    }else{
                        $td.attr("rowspan", rowsp);
                        $td = $newtdText; 
                        rowsp = 1;
                    }
                    $td.attr("rowspan", rowsp);
                }
            });
        }
    });
}