",
- tplfld = "{0}";
- $.each(fdata.summary,function(){
- if(this.nm === cm[k].name) {
- if(cm[k].summaryTpl) {
- tplfld = cm[k].summaryTpl;
- }
- if(typeof this.st === 'string' && this.st.toLowerCase() === 'avg') {
- if(this.sd && this.vd) {
- this.v = (this.v/this.vd);
- } else if(this.v && grlen > 0) {
- this.v = (this.v/grlen);
- }
- }
- try {
- this.groupCount = fdata.cnt;
- this.groupIndex = fdata.dataIndex;
- this.groupValue = fdata.value;
- vv = $t.formatter('', this.v, k, this);
- } catch (ef) {
- vv = this.v;
- }
- tmpdata= ""+$.jgrid.template(tplfld, vv, fdata.cnt, fdata.dataIndex, fdata.displayValue)+ " | ";
- return false;
- }
- });
- str += tmpdata;
- }
- return str;
- }
- var sumreverse = $.makeArray(grp.groupSummary), mul;
- sumreverse.reverse();
- mul = $t.p.multiselect ? " colspan=\"2\"" : "";
- $.each(grp.groups,function(i,n){
- if(grp._locgr) {
- if( !(n.startRow +n.cnt > (page-1)*rn && n.startRow < page*rn)) {
- return true;
- }
- }
- toEnd++;
- clid = $t.p.id+"ghead_"+n.idx;
- hid = clid+"_"+i;
- icon = "";
- try {
- if ($.isArray(grp.formatDisplayField) && $.isFunction(grp.formatDisplayField[n.idx])) {
- gv = grp.formatDisplayField[n.idx].call($t, n.displayValue, n.value, $t.p.colModel[cp[n.idx]], n.idx, grp);
- } else {
- gv = $t.formatter(hid, n.displayValue, cp[n.idx], n.value );
- }
- } catch (egv) {
- gv = n.displayValue;
- }
- var grpTextStr = '';
- if($.isFunction(grp.groupText[n.idx])) {
- grpTextStr = grp.groupText[n.idx].call($t, gv, n.cnt, n.summary);
- } else {
- grpTextStr = $.jgrid.template(grp.groupText[n.idx], gv, n.cnt, n.summary);
- }
- if( !(typeof grpTextStr ==='string' || typeof grpTextStr ==='number' ) ) {
- grpTextStr = gv;
- }
- if(grp.groupSummaryPos[n.idx] === 'header') {
- str += "0 ? " style=\"display:none;\" " : " ") + "role=\"row\" class= \"" + common.content + " jqgroup ui-row-"+$t.p.direction+" "+clid+"\">" + icon+grpTextStr + " | ";
- str += buildSummaryTd(i, 0, grp.groups, grp.groupColumnShow[n.idx] === false ? (mul ==="" ? 2 : 3) : ((mul ==="") ? 1 : 2) );
- str += "
";
- } else {
- str += "0 ? " style=\"display:none;\" " : " ") + "role=\"row\" class= \"" + common.content + " jqgroup ui-row-"+$t.p.direction+" "+clid+"\">" + icon + grpTextStr + " |
";
- }
- var leaf = len-1 === n.idx;
- if( leaf ) {
- var gg = grp.groups[i+1], kk, ik, offset = 0, sgr = n.startRow,
- end = gg !== undefined ? gg.startRow : grp.groups[i].startRow + grp.groups[i].cnt;
- if(grp._locgr) {
- offset = (page-1)*rn;
- if(offset > n.startRow) {
- sgr = offset;
- }
- }
- for(kk=sgr;kk";
- str += buildSummaryTd(i, ik, grp.groups, 0);
- str += "";
- }
- toEnd = jj;
- }
- }
- });
- $("#"+$.jgrid.jqID($t.p.id)+" tbody:first").append(str);
- // free up memory
- str = null;
- });
- },
- groupingGroupBy : function (name, options ) {
- return this.each(function(){
- var $t = this;
- if(typeof name === "string") {
- name = [name];
- }
- var grp = $t.p.groupingView;
- $t.p.grouping = true;
- grp._locgr = false;
- //Set default, in case visibilityOnNextGrouping is undefined
- if (grp.visibiltyOnNextGrouping === undefined) {
- grp.visibiltyOnNextGrouping = [];
- }
- var i;
- // show previous hidden groups if they are hidden and weren't removed yet
- for(i=0;i', {role: "row", "aria-hidden": "true"}).addClass("jqg-first-row-header").css("height", "auto");
- } else {
- $firstHeaderRow.empty();
- }
- var $firstRow,
- inColumnHeader = function (text, columnHeaders) {
- var length = columnHeaders.length, i;
- for (i = 0; i < length; i++) {
- if (columnHeaders[i].startColumnName === text) {
- return i;
- }
- }
- return -1;
- };
-
- $(ts).prepend($thead);
- $tr = $('', {role: "row"}).addClass("ui-jqgrid-labels jqg-third-row-header");
- for (i = 0; i < cml; i++) {
- th = ths[i].el;
- $th = $(th);
- cmi = colModel[i];
- // build the next cell for the first header row
- thStyle = { height: '0px', width: ths[i].width + 'px', display: (cmi.hidden ? 'none' : '')};
- $("", {role: 'gridcell'}).css(thStyle).addClass("ui-first-th-"+ts.p.direction).appendTo($firstHeaderRow);
-
- th.style.width = ""; // remove unneeded style
- iCol = inColumnHeader(cmi.name, o.groupHeaders);
- if (iCol >= 0) {
- cghi = o.groupHeaders[iCol];
- numberOfColumns = cghi.numberOfColumns;
- titleText = cghi.titleText;
- className = cghi.className || "";
- // caclulate the number of visible columns from the next numberOfColumns columns
- for (cVisibleColumns = 0, iCol = 0; iCol < numberOfColumns && (i + iCol < cml); iCol++) {
- if (!colModel[i + iCol].hidden) {
- cVisibleColumns++;
- }
- }
-
- // The next numberOfColumns headers will be moved in the next row
- // in the current row will be placed the new column header with the titleText.
- // The text will be over the cVisibleColumns columns
- $colHeader = $(' | ').attr({role: "columnheader"})
- .addClass(base.headerBox+ " ui-th-column-header ui-th-"+ts.p.direction+" "+className)
- //.css({'height':'22px', 'border-top': '0 none'})
- .html(titleText);
- if(cVisibleColumns > 0) {
- $colHeader.attr("colspan", String(cVisibleColumns));
- }
- if (ts.p.headertitles) {
- $colHeader.attr("title", $colHeader.text());
- }
- // hide if not a visible cols
- if( cVisibleColumns === 0) {
- $colHeader.hide();
- }
-
- $th.before($colHeader); // insert new column header before the current
- $tr.append(th); // move the current header in the next row
-
- // set the coumter of headers which will be moved in the next row
- skip = numberOfColumns - 1;
- } else {
- if (skip === 0) {
- if (o.useColSpanStyle) {
- // expand the header height to n rows
- var rowspan = $th.attr("rowspan") ? parseInt($th.attr("rowspan"),10) + 1 : 2;
- $th.attr("rowspan", rowspan);
- } else {
- $(' | ', {role: "columnheader"})
- .addClass(base.headerBox+" ui-th-column-header ui-th-"+ts.p.direction)
- .css({"display": cmi.hidden ? 'none' : ''})
- .insertBefore($th);
- $tr.append(th);
- }
- } else {
- // move the header to the next row
- //$th.css({"padding-top": "2px", height: "19px"});
- $tr.append(th);
- skip--;
- }
- }
- }
- $theadInTable = $(ts).children("thead");
- $theadInTable.prepend($firstHeaderRow);
- $tr.insertAfter($trLabels);
- $htable.append($theadInTable);
-
- if (o.useColSpanStyle) {
- // Increase the height of resizing span of visible headers
- $htable.find("span.ui-jqgrid-resize").each(function () {
- var $parent = $(this).parent();
- if ($parent.is(":visible")) {
- this.style.cssText = 'height: ' + $parent.height() + 'px !important; cursor: col-resize;';
- }
- });
-
- // Set position of the sortable div (the main lable)
- // with the column header text to the middle of the cell.
- // One should not do this for hidden headers.
- $htable.find("div.ui-jqgrid-sortable").each(function () {
- var $ts = $(this), $parent = $ts.parent();
- if ($parent.is(":visible") && $parent.is(":has(span.ui-jqgrid-resize)")) {
- // minus 4px from the margins of the resize markers
- $ts.css('top', ($parent.height() - $ts.outerHeight()) / 2 - 4 + 'px');
- }
- });
- }
-
- $firstRow = $theadInTable.find("tr.jqg-first-row-header");
- $(ts).on('jqGridResizeStop.setGroupHeaders', function (e, nw, idx) {
- $firstRow.find('th').eq(idx)[0].style.width = nw + "px";
- });
- });
- },
- destroyGroupHeader : function(nullHeader) {
- if(nullHeader === undefined) {
- nullHeader = true;
- }
- return this.each(function()
- {
- var $t = this, $tr, i, l, headers, $th, $resizing, grid = $t.grid,
- thead = $("table.ui-jqgrid-htable thead", grid.hDiv), cm = $t.p.colModel, hc;
- if(!grid) { return; }
-
- $(this).off('.setGroupHeaders');
- $tr = $(" |
", {role: "row"}).addClass("ui-jqgrid-labels");
- headers = grid.headers;
- for (i = 0, l = headers.length; i < l; i++) {
- hc = cm[i].hidden ? "none" : "";
- $th = $(headers[i].el)
- .width(headers[i].width)
- .css('display',hc);
- try {
- $th.removeAttr("rowSpan");
- } catch (rs) {
- //IE 6/7
- $th.attr("rowSpan",1);
- }
- $tr.append($th);
- $resizing = $th.children("span.ui-jqgrid-resize");
- if ($resizing.length>0) {// resizable column
- $resizing[0].style.height = "";
- }
- $th.children("div")[0].style.top = "";
- }
- $(thead).children('tr.ui-jqgrid-labels').remove();
- $(thead).prepend($tr);
-
- if(nullHeader === true) {
- $($t).jqGrid('setGridParam',{ 'groupHeader': null});
- }
- });
- }
-});
+//module begin
+$.jgrid.extend({
+ groupingSetup : function () {
+ return this.each(function (){
+ var $t = this, i, j, cml, cm = $t.p.colModel, grp = $t.p.groupingView,
+ classes = $.jgrid.styleUI[($t.p.styleUI || 'jQueryUI')].grouping;
+ if(grp !== null && ( (typeof grp === 'object') || $.isFunction(grp) ) ) {
+ if(!grp.plusicon) { grp.plusicon = classes.icon_plus;}
+ if(!grp.minusicon) { grp.minusicon = classes.icon_minus;}
+ if(!grp.groupField.length) {
+ $t.p.grouping = false;
+ } else {
+ if (grp.visibiltyOnNextGrouping === undefined) {
+ grp.visibiltyOnNextGrouping = [];
+ }
+
+ grp.lastvalues=[];
+ if(!grp._locgr) {
+ grp.groups =[];
+ }
+ grp.counters =[];
+ for(i=0;i 0 ? nums[0] : undefined;
+ },
+ itemGroupingLevel,
+ showData,
+ collapsed = false,
+ footLevel,
+ skip = false,
+ frz = $t.p.frozenColumns ? $t.p.id+"_frozen" : false,
+ tar2 = frz ? $("#"+$.jgrid.jqID(hid), "#"+$.jgrid.jqID(frz) ) : false,
+ r2 = (tar2 && tar2.length) ? tar2[0].nextSibling : null;
+ if( tarspan.hasClass(minus) ) {
+ if(r){
+ while(r) {
+ itemGroupingLevel = getGroupingLevelFromClass(r.className);
+ if (itemGroupingLevel !== undefined && itemGroupingLevel <= num) {
+ break;
+ }
+ footLevel = parseInt($(r).attr("jqfootlevel") ,10);
+ skip = isNaN(footLevel) ? false :
+ (grp.showSummaryOnHide && footLevel <= num);
+ if( !skip) {
+ $(r).hide();
+ }
+ r = r.nextSibling;
+ if(frz) {
+ if(!skip) {
+ $(r2).hide();
+ }
+ r2 = r2.nextSibling;
+ }
+ }
+ }
+ tarspan.removeClass(minus).addClass(plus);
+ collapsed = true;
+ } else {
+ if(r){
+ showData = undefined;
+ while(r) {
+ itemGroupingLevel = getGroupingLevelFromClass(r.className);
+ if (showData === undefined) {
+ showData = itemGroupingLevel === undefined; // if the first row after the opening group is data row then show the data rows
+ }
+ skip = $(r).hasClass("ui-subgrid") && $(r).hasClass("ui-sg-collapsed");
+ if (itemGroupingLevel !== undefined) {
+ if (itemGroupingLevel <= num) {
+ break;// next item of the same lever are found
+ }
+ if (itemGroupingLevel === num + 1) {
+ if(!skip) {
+ $(r).show().find(">td>span."+"tree-wrap-"+$t.p.direction).removeClass(minus).addClass(plus);
+ if(frz) {
+ $(r2).show().find(">td>span."+"tree-wrap-"+$t.p.direction).removeClass(minus).addClass(plus);
+ }
+ }
+ }
+ } else if (showData) {
+ if(!skip) {
+ $(r).show();
+ if(frz) {
+ $(r2).show();
+ }
+ }
+ }
+ r = r.nextSibling;
+ if(frz) {
+ r2 = r2.nextSibling;
+ }
+ }
+ }
+ tarspan.removeClass(plus).addClass(minus);
+ }
+ $($t).triggerHandler("jqGridGroupingClickGroup", [hid , collapsed]);
+ if( $.isFunction($t.p.onClickGroup)) { $t.p.onClickGroup.call($t, hid , collapsed); }
+
+ });
+ return false;
+ },
+ groupingRender : function (grdata, colspans, page, rn ) {
+ return this.each(function(){
+ var $t = this,
+ grp = $t.p.groupingView,
+ str = "", icon = "", hid, clid, pmrtl = grp.groupCollapse ? grp.plusicon : grp.minusicon, gv, cp=[], len =grp.groupField.length,
+ //classes = $.jgrid.styleUI[($t.p.styleUI || 'jQueryUI')]['grouping'],
+ common = $.jgrid.styleUI[($t.p.styleUI || 'jQueryUI')].common;
+
+ pmrtl = pmrtl+" tree-wrap-"+$t.p.direction;
+ $.each($t.p.colModel, function (i,n){
+ var ii;
+ for(ii=0;ii= 0; i--) {
+ if(grp[i].idx === id-offset) {
+ ret = grp[i];
+ break;
+ }
+ }
+ }
+ }
+ return ret;
+ }
+ function buildSummaryTd(i, ik, grp, foffset) {
+ var fdata = findGroupIdx(i, ik, grp),
+ cm = $t.p.colModel,
+ vv, grlen = fdata.cnt, str="", k;
+ for(k=foffset; k ",
+ tplfld = "{0}";
+ $.each(fdata.summary,function(){
+ if(this.nm === cm[k].name) {
+ if(cm[k].summaryTpl) {
+ tplfld = cm[k].summaryTpl;
+ }
+ if(typeof this.st === 'string' && this.st.toLowerCase() === 'avg') {
+ if(this.sd && this.vd) {
+ this.v = (this.v/this.vd);
+ } else if(this.v && grlen > 0) {
+ this.v = (this.v/grlen);
+ }
+ }
+ try {
+ this.groupCount = fdata.cnt;
+ this.groupIndex = fdata.dataIndex;
+ this.groupValue = fdata.value;
+ vv = $t.formatter('', this.v, k, this);
+ } catch (ef) {
+ vv = this.v;
+ }
+ tmpdata= ""+$.jgrid.template(tplfld, vv, fdata.cnt, fdata.dataIndex, fdata.displayValue)+ " | ";
+ return false;
+ }
+ });
+ str += tmpdata;
+ }
+ return str;
+ }
+ var sumreverse = $.makeArray(grp.groupSummary), mul;
+ sumreverse.reverse();
+ mul = $t.p.multiselect ? " colspan=\"2\"" : "";
+ $.each(grp.groups,function(i,n){
+ if(grp._locgr) {
+ if( !(n.startRow +n.cnt > (page-1)*rn && n.startRow < page*rn)) {
+ return true;
+ }
+ }
+ toEnd++;
+ clid = $t.p.id+"ghead_"+n.idx;
+ hid = clid+"_"+i;
+ icon = "";
+ try {
+ if ($.isArray(grp.formatDisplayField) && $.isFunction(grp.formatDisplayField[n.idx])) {
+ gv = grp.formatDisplayField[n.idx].call($t, n.displayValue, n.value, $t.p.colModel[cp[n.idx]], n.idx, grp);
+ } else {
+ gv = $t.formatter(hid, n.displayValue, cp[n.idx], n.value );
+ }
+ } catch (egv) {
+ gv = n.displayValue;
+ }
+ var grpTextStr = '';
+ if($.isFunction(grp.groupText[n.idx])) {
+ grpTextStr = grp.groupText[n.idx].call($t, gv, n.cnt, n.summary);
+ } else {
+ grpTextStr = $.jgrid.template(grp.groupText[n.idx], gv, n.cnt, n.summary);
+ }
+ if( !(typeof grpTextStr ==='string' || typeof grpTextStr ==='number' ) ) {
+ grpTextStr = gv;
+ }
+ if(grp.groupSummaryPos[n.idx] === 'header') {
+ str += "0 ? " style=\"display:none;\" " : " ") + "role=\"row\" class= \"" + common.content + " jqgroup ui-row-"+$t.p.direction+" "+clid+"\">" + icon+grpTextStr + " | ";
+ str += buildSummaryTd(i, 0, grp.groups, grp.groupColumnShow[n.idx] === false ? (mul ==="" ? 2 : 3) : ((mul ==="") ? 1 : 2) );
+ str += "
";
+ } else {
+ str += "0 ? " style=\"display:none;\" " : " ") + "role=\"row\" class= \"" + common.content + " jqgroup ui-row-"+$t.p.direction+" "+clid+"\">" + icon + grpTextStr + " |
";
+ }
+ var leaf = len-1 === n.idx;
+ if( leaf ) {
+ var gg = grp.groups[i+1], kk, ik, offset = 0, sgr = n.startRow,
+ end = gg !== undefined ? gg.startRow : grp.groups[i].startRow + grp.groups[i].cnt;
+ if(grp._locgr) {
+ offset = (page-1)*rn;
+ if(offset > n.startRow) {
+ sgr = offset;
+ }
+ }
+ for(kk=sgr;kk";
+ str += buildSummaryTd(i, ik, grp.groups, 0);
+ str += "
";
+ }
+ toEnd = jj;
+ }
+ }
+ });
+ $("#"+$.jgrid.jqID($t.p.id)+" tbody:first").append(str);
+ // free up memory
+ str = null;
+ });
+ },
+ groupingGroupBy : function (name, options ) {
+ return this.each(function(){
+ var $t = this;
+ if(typeof name === "string") {
+ name = [name];
+ }
+ var grp = $t.p.groupingView;
+ $t.p.grouping = true;
+ grp._locgr = false;
+ //Set default, in case visibilityOnNextGrouping is undefined
+ if (grp.visibiltyOnNextGrouping === undefined) {
+ grp.visibiltyOnNextGrouping = [];
+ }
+ var i;
+ // show previous hidden groups if they are hidden and weren't removed yet
+ for(i=0;i', {role: "row", "aria-hidden": "true"}).addClass("jqg-first-row-header").css("height", "auto");
+ } else {
+ $firstHeaderRow.empty();
+ }
+ var $firstRow,
+ inColumnHeader = function (text, columnHeaders) {
+ var length = columnHeaders.length, i;
+ for (i = 0; i < length; i++) {
+ if (columnHeaders[i].startColumnName === text) {
+ return i;
+ }
+ }
+ return -1;
+ };
+
+ $(ts).prepend($thead);
+ $tr = $('', {role: "row"}).addClass("ui-jqgrid-labels jqg-third-row-header");
+ for (i = 0; i < cml; i++) {
+ th = ths[i].el;
+ $th = $(th);
+ cmi = colModel[i];
+ // build the next cell for the first header row
+ thStyle = { height: '0px', width: ths[i].width + 'px', display: (cmi.hidden ? 'none' : '')};
+ $("", {role: 'gridcell'}).css(thStyle).addClass("ui-first-th-"+ts.p.direction).appendTo($firstHeaderRow);
+
+ th.style.width = ""; // remove unneeded style
+ iCol = inColumnHeader(cmi.name, o.groupHeaders);
+ if (iCol >= 0) {
+ cghi = o.groupHeaders[iCol];
+ numberOfColumns = cghi.numberOfColumns;
+ titleText = cghi.titleText;
+ className = cghi.className || "";
+ // caclulate the number of visible columns from the next numberOfColumns columns
+ for (cVisibleColumns = 0, iCol = 0; iCol < numberOfColumns && (i + iCol < cml); iCol++) {
+ if (!colModel[i + iCol].hidden) {
+ cVisibleColumns++;
+ }
+ }
+
+ // The next numberOfColumns headers will be moved in the next row
+ // in the current row will be placed the new column header with the titleText.
+ // The text will be over the cVisibleColumns columns
+ $colHeader = $(' | ').attr({role: "columnheader"})
+ .addClass(base.headerBox+ " ui-th-column-header ui-th-"+ts.p.direction+" "+className)
+ //.css({'height':'22px', 'border-top': '0 none'})
+ .html(titleText);
+ if(cVisibleColumns > 0) {
+ $colHeader.attr("colspan", String(cVisibleColumns));
+ }
+ if (ts.p.headertitles) {
+ $colHeader.attr("title", $colHeader.text());
+ }
+ // hide if not a visible cols
+ if( cVisibleColumns === 0) {
+ $colHeader.hide();
+ }
+
+ $th.before($colHeader); // insert new column header before the current
+ $tr.append(th); // move the current header in the next row
+
+ // set the coumter of headers which will be moved in the next row
+ skip = numberOfColumns - 1;
+ } else {
+ if (skip === 0) {
+ if (o.useColSpanStyle) {
+ // expand the header height to n rows
+ var rowspan = $th.attr("rowspan") ? parseInt($th.attr("rowspan"),10) + 1 : 2;
+ $th.attr("rowspan", rowspan);
+ } else {
+ $(' | ', {role: "columnheader"})
+ .addClass(base.headerBox+" ui-th-column-header ui-th-"+ts.p.direction)
+ .css({"display": cmi.hidden ? 'none' : ''})
+ .insertBefore($th);
+ $tr.append(th);
+ }
+ } else {
+ // move the header to the next row
+ //$th.css({"padding-top": "2px", height: "19px"});
+ $tr.append(th);
+ skip--;
+ }
+ }
+ }
+ $theadInTable = $(ts).children("thead");
+ $theadInTable.prepend($firstHeaderRow);
+ $tr.insertAfter($trLabels);
+ $htable.append($theadInTable);
+
+ if (o.useColSpanStyle) {
+ // Increase the height of resizing span of visible headers
+ $htable.find("span.ui-jqgrid-resize").each(function () {
+ var $parent = $(this).parent();
+ if ($parent.is(":visible")) {
+ this.style.cssText = 'height: ' + $parent.height() + 'px !important; cursor: col-resize;';
+ }
+ });
+
+ // Set position of the sortable div (the main lable)
+ // with the column header text to the middle of the cell.
+ // One should not do this for hidden headers.
+ $htable.find("div.ui-jqgrid-sortable").each(function () {
+ var $ts = $(this), $parent = $ts.parent();
+ if ($parent.is(":visible") && $parent.is(":has(span.ui-jqgrid-resize)")) {
+ // minus 4px from the margins of the resize markers
+ $ts.css('top', ($parent.height() - $ts.outerHeight()) / 2 - 4 + 'px');
+ }
+ });
+ }
+
+ $firstRow = $theadInTable.find("tr.jqg-first-row-header");
+ $(ts).on('jqGridResizeStop.setGroupHeaders', function (e, nw, idx) {
+ $firstRow.find('th').eq(idx)[0].style.width = nw + "px";
+ });
+ });
+ },
+ destroyGroupHeader : function(nullHeader) {
+ if(nullHeader === undefined) {
+ nullHeader = true;
+ }
+ return this.each(function()
+ {
+ var $t = this, $tr, i, l, headers, $th, $resizing, grid = $t.grid,
+ thead = $("table.ui-jqgrid-htable thead", grid.hDiv), cm = $t.p.colModel, hc;
+ if(!grid) { return; }
+
+ $(this).off('.setGroupHeaders');
+ $tr = $(" |
", {role: "row"}).addClass("ui-jqgrid-labels");
+ headers = grid.headers;
+ for (i = 0, l = headers.length; i < l; i++) {
+ hc = cm[i].hidden ? "none" : "";
+ $th = $(headers[i].el)
+ .width(headers[i].width)
+ .css('display',hc);
+ try {
+ $th.removeAttr("rowSpan");
+ } catch (rs) {
+ //IE 6/7
+ $th.attr("rowSpan",1);
+ }
+ $tr.append($th);
+ $resizing = $th.children("span.ui-jqgrid-resize");
+ if ($resizing.length>0) {// resizable column
+ $resizing[0].style.height = "";
+ }
+ $th.children("div")[0].style.top = "";
+ }
+ $(thead).children('tr.ui-jqgrid-labels').remove();
+ $(thead).prepend($tr);
+
+ if(nullHeader === true) {
+ $($t).jqGrid('setGridParam',{ 'groupHeader': null});
+ }
+ });
+ }
+});
//module begin
$.jgrid = $.jgrid || {};