Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by MUHABBAT ALI on May 03, 2009 21:16
open dhtmlx forum
Synchronization of 2 grids

HI,


I have a requirement to synchronize 2 grids.
The FIRST grid is interactive for the end user (Using Pagination) while other grid synchronize its data to as soon as the user filters data in FIRST Grid. (Second grid is used for pivoting the data of all the pages in FIRST grid).

One way to synchronize the these 2 grid data in Loop. That can slow my page performance.

Is there any Builtin function in DHTMLXgrid to copy its data to another grid.


Regards

MUHABBAT
Answer posted by dhxSupport on May 04, 2009 02:05

To synchronize 2 grids you can serialize first grid and load second grid from the serialized variable. 

To serialize grid after user was filter first grid you can use "onFilterEnd" event. 

To reload second grid based on the serialized variable you can use:

grid2.clearAll();

grid2.parse(serialized_xml_string);