Categories | Question details Back To List | ||
Grid : Dynamic loading onCompletion Hi, I am using dynamic loading to load xml from backend. Is there any event I can use, to execute code when all of the rows are loaded. Thanks, Nishan Answer posted by dhxSupport on Jun 03, 2009 01:28 You can use "onXLE" and "onXLS" events. Those events availibe in PRO version only. Answer posted by Nishan on Jun 03, 2009 07:24 Hi, This is what I am trying to do -- Instead of loading xml when navigating to next page, I want to load the next chunk of xml as soon as the previuos chunk is parsed. In onXLE, I am calling grid.load(url) with appropriate posStart and totalCount parameters. This loads all xml chunks one by one, but after all rows are loaded, sorting gets messed up. I tried calling grid.render_row(i) for each row loaded, still issue persists. What could be the issue? Thanks, Nishan Answer posted by Support on Jun 03, 2009 07:57 >>I want to load the next chunk of xml as soon as the previuos chunk is parsed. grid 2.1 support next command, which basically do the same grid.load(url,function(){ grid.forceFullLoading(chunk_size); //loads all not loaded yet data, by chunks of defined size }); >>but after all rows are loaded If all data loaded in grid - client side code will work correctly, it doesn't matter if data was loaded all-at-once or by chunks. Be sure that really all rows loaded in grid and that each row has unique, not equal to 0, ID. |