Categories | Question details Back To List | ||
startfastoperations and math cells (sum) in treegrid Hello We have a Treegrid with math-cells to auto-calculate the sums of the trees leaves/children. If we add some rows and set values within startfastoperations() and stopfastoperations() the sums are not updated, the footer on the other hand is. How do we redraw/recalculate the grid after stopfastoperations()? Thanks Answer posted by dhxSupport on Sep 02, 2009 03:34 Unfortunately it's impossible to force math operation if you are adding rows in treeGrid with fast operations. To make math operation work you should not use fast operations when adding rows. Answer posted by Michael on Sep 02, 2009 03:38 Maybe it should be possible to tell the Grid/Treegrid to recalculate itself after fast operations are completed. The Formulaes are still there (but wrong) but the Footers are displaying the "right" values. Answer posted by Support on Sep 02, 2009 06:25 If you have formulas in some specific column. After adding all rows, and calling stopfastoperations you can use a code similar to the next grid.forEachRow(function(id){ var cell = grid.cells(id,index).cell; grid._calcSCL(cell); }); where index - index of the column for which math need to be reapplied Answer posted by Support on Sep 03, 2009 01:12 If you need trigger [=sum] recalculation, you can call grid.callEvent("onXLE",[]); |