Categories | Question details Back To List | ||
footer for counting rows in grid hi i am using your function for counting rows in a tree grid and works really well: mygrid.attachFooter('Count:,{#stat_tree_count},#cspan'); however if i try to use this on a grid (not a tree grid) then i get the following error: this._h2 is undefined _in_header_stat_tree_count_leaf()()dhtmlxtr...filter.js (line 38) _stat_in_header()()dhtmlxtr...filter.js (line 41) ev()()dhtmlxgrid.js (line 661) ev()()dhtmlxgrid.js (line 661) load()()dhtmlxgrid.js (line 776) waitLoadFunction()()dhtmlxcommon.js (line 15) [Break on this error] return this._maskArr[i]?this._aplNF(sum...rEachChild(0,function(el){count++},this) do you have a similar function for use in grids thanks Answer posted by dhxSupport on Mar 11, 2009 09:45 In the grid you can use {#stat_count} command. More information you can find here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/guide.html#grid_autocalcvals http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_content_in_header.htm#grid_ccingrid |