/* Product Name: dhtmlxSuite Version: 5.2.0 Edition: Professional License: content of this file is covered by DHTMLX Commercial or Enterprise license. Usage without proper license is prohibited. To obtain it contact sales@dhtmlx.com Copyright UAB Dinamenta http://www.dhtmlx.com */ dhtmlXGridObject.prototype.unGroup=function(){ if (!this._groups) return; this._dndProblematic=false; delete this._groups; delete this._gIndex; if (this._fake) this._mirror_rowsCol(); this.forEachRow(function(id){ this.rowsAr[id].style.display=''; }) this._reset_view(); this.callEvent("onGridReconstructed",[]) this.callEvent("onUnGroup",[]); } dhtmlXGridObject.prototype._mirror_rowsCol=function(){ this._fake._groups=this._groups; this._fake._gIndex=this._gIndex; this.rowsBuffer=dhtmlxArray(); for (var i=0; i "; if (this.customGroupFormat) html+=this.customGroupFormat(z.text,z.count); else html+=z.text+" ( "+z.count+" ) "; z.row.childNodes[mask._title].innerHTML=html; } dhtmlXGridObject.prototype._addPseudoRow=function(skip){ var mask = this._gmask||this._fake._gmask; var r=mask.cloneNode(true) //cloneNode ignores custom attributes for (var i=0; i=0; i--){ if (this.rowsCol[i]._cntr){ this.rowsCol[i]._cntr._childs=a; a=[]; b.push(this.rowsCol[i]); } else a.push(this.rowsCol[i]); this.rowsCol[i].parentNode.removeChild(this.rowsCol[i]); } return b; } dhtmlXGridObject.prototype._groups_put=function(b){ var sts = this.rowsCol.stablesort; this.rowsCol=new dhtmlxArray(0); this.rowsCol.stablesort = sts; for (var i=0; i=0; i--){ if (!this.rowsCol[i]._cntr){ c=a(c,this.cells3(this.rowsCol[i],ind).getValue()*1,j); j++; } else { this.cells5(this.rowsCol[i].childNodes[rind],this.cellType[ind]).setValue(c); j=c=0; } } } dhtmlXGridObject.prototype._g_stat_total=function(c,n,i){ return c+n; } dhtmlXGridObject.prototype._g_stat_min=function(c,n,i){ if (!i) c=Infinity; return Math.min(c,n); } dhtmlXGridObject.prototype._g_stat_max=function(c,n,i){ if (!i) c=-Infinity; return Math.max(c,n); } dhtmlXGridObject.prototype._g_stat_average=function(c,n,i){ return (c*i+n)/(i+1); } dhtmlXGridObject.prototype._g_stat_count=function(c,n,i){ return ++c; } //(c)dhtmlx ltd. www.dhtmlx.com