JqGrid merged column, more than one equivalence cells are combined into a cell
// JgGrid merged column Merger: function (curGrid, CellName) { // get the display interface to set id var Mya = curGrid.getDataIDs (); // how many currently displayed var length = mya.length; for ( var I = 0; I <length; I ++ ) { // top to bottom to fetch a message var before curGrid.jqGrid = ( 'getRowData' , Mya [I]); // number of rows combined definitions var rowSpanTaxCount =. 1 ; for ( var J = i + 1; j <= length; j ++) { // and Comparative upper side if the value of the same information on the number of lines merged +1 and disposed so that the current cell rowspan hidden var End = curGrid.jqGrid ( 'getRowData' , Mya [J]); IF (before [CellName] = == End [CellName]) { rowSpanTaxCount ++ ; curGrid.setCell (Mya [J], CellName, '', {the display: 'none' }); } the else { rowSpanTaxCount =. 1 ; BREAK ; } $ ( "#" + CellName + "" + mya [ i] + "") .attr ( "rowspan", rowSpanTaxCount); } } }