Categories | Question details Back To List | ||
Refresh Footer Hi, I have a grid with calcalated footer. ... mygrid.attachFooter( "<? echo SUM_TOTAL ?>,#cspan,<div id='col_A'>0</div>,<div id='col_B'>0</div>,<div id='col_C'>0</div>,<div id='col_D'>0</div>,<div id='col_E'>0</div>,<div id='col_F'>0</div>,<div id='col_G'>0</div>,<div id='col_H'>0</div>, , " ); ... // After Update show the new calculated value in the appropriate cell myDataProcessor.setOnAfterUpdate( function( id, action, rowID ){ if ( myDataProcessor.getSyncState()) mygrid.cells( id, 9 ).setValue( rowID ); mygrid.???? }); After re-calculation of values using myDataProcessor I can change the content of a cell, but how to start a re-calculation of the footer? Can you help? Best regards Klaus Answer posted by dhxtSupport on Feb 13, 2009 05:39 You can force grid stat recalculation by next command grid.callEvent("onGridReconstructed",[]) after it , all footer values will be recalculated, and if grid has not data, #stat_total will be replaced with 0 |