Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jeff on Apr 01, 2009 03:47
open dhtmlx forum
Check/Uncheck All while SmartRender is on

When smartRender is on, the check/uncheck all only applies to the current view, if dataset is huge, loop though the grid cells taking long time. Anyway to directly modify the underline data source, so that smartRender view can pick up the new change?

Also noticed the uncheckAll() does not work in the pro eval version i got last week.

Thanks

Jeff
Answer posted by Support on Apr 01, 2009 05:19
>>Anyway to directly modify the underline data source, so that smartRender view can pick up the new change?
Default functionality loops through rendered rows only ( forEachRow iterator ) 
It pretty simple to iterate through all rows ( using for loop from 0 to getRowsNum value ) and set necessary checkbox value , but it will result in pre-rendering of all rows. 
Because the source data may be stored as XML,JSON,CSV or something else - there is no  single way to change  value in not-parsed data. 
( technically it possible to access XML or other objects of unparsed data and change it in necessary way , but it can't be done in universal way ) 

>>Also noticed the uncheckAll() does not work in the pro eval version i got last week.
Fixed js file sent by email.