Which update do you mean ?
In case of plain grid, the total count of rows can be get as
grid.getRowsNum();
Sorry if I wasn’t clear there. I meant in regards to the Knowledge Base article posted below:
Question posted by Jesús Sánchez on Jun 24, 2008 02:16
|
open in interactive version |
group with paging
Hi!,
I have a problem with data grid when I show total rows in paging module when groupBy is enabled.
Function show me total rows within rows grouped.
solution, please?
Thanks.
Hi!,
I have a problem with data grid when I show total rows in paging module when groupBy is enabled.
Function show me total rows within rows grouped.
solution, please?
Thanks.
Answer posted by Support on Jun 24, 2008 02:56
>> in paging module when groupBy
The paging mode and groupBy modes are not cross compatible
[dhtmlx.com/docs/products/dhtmlxG ... patibility](http://dhtmlx.com/docs/products/dhtmlxGrid/doc/compatibility.html#grid_fcompatibility)
If you still want to use both modes - I can provide the instruction how dhtmlxgrid_pgn.js need to be updated, to show correct count of rows in such case
The paging mode and groupBy modes are not cross compatible
[dhtmlx.com/docs/products/dhtmlxG ... patibility](http://dhtmlx.com/docs/products/dhtmlxGrid/doc/compatibility.html#grid_fcompatibility)
If you still want to use both modes - I can provide the instruction how dhtmlxgrid_pgn.js need to be updated, to show correct count of rows in such case
------------------------------
Basically I'd like the instructions on how to update the pgn file to show the correct row count. As is, we get the count of rows plus the number of group by rows on the page.
Thanks.
dhtmlxgrid_pgn.js , line 175
case “total”:
return ‘"+arguments[3]+"’;
can be changed to
case “total”:
this._count=function(ar){ var c=-1; for (var a in cr) c++; return c; }
return ‘"+(arguments[3]-this._count(this._groups))+"’;