Categories | Question details Back To List | ||||
Hello,
I'd like to see how you update the grid script to get the correct number of rows as well.
Thanks. Answer posted by Support on Jul 09, 2008 01:18 Which update do you mean ? In case of plain grid, the total count of rows can be get as grid.getRowsNum(); Answer posted on Jul 09, 2008 11:02 Sorry if I wasn't clear there. I meant in regards to the Knowledge Base article posted below:
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. 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 http://dhtmlx.com/docs/products/dhtmlxGrid/doc/compatibility.html#grid_fcompatibility">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. Answer posted by Support on Jul 10, 2008 01:45 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))+"'; |