Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Helmut Frankenbach on Dec 21, 2009 02:05
open dhtmlx forum
event onDistributedEnd not called

I use distributed parsing and a post processing callback routine, which is called on "onDistributedEnd".

bomGrid.init();
....
bomGrid.enableDistributedParsing(true);
bomGrid.splitAt(8);
bomGrid.attachEvent("onDistributedEnd", postProcessing);

Problem: the event "onDistributedEnd" is NOT called if the XML data contains less than 10 rows.

How can I ensure that the post processing routine is called also for small grids?

Thanks and regards,
Helmut Frankenbach
Answer posted by dhxSupport on Dec 21, 2009 02:52
Thank you for your node. This issue confirmed. As a work around you can ensure if post processing was finished in case of small grid with 2nd parameter of post method:
mygrid.post(url,doOnLoad);
function doOnLoad(){
//all rows where loaded.
}
Answer posted by Helmut Frankenbach on Dec 21, 2009 03:46
bomGrid.post(xmlURL, postProcessing); does not work, "incorrect parameter" error in browser (IE6)