Loading Grids from Serialized XML | Structure Variations

Hi there,

I have a page which contains 2 grids. The first grid is used to display available rows to the user (Grid A), and the other is used to hold the selections while the user submits queries against the database (Grid B).

The 2 grids display different data to the user (although both grids hold exactly the same information), so I set both up using hidden columns so that Grid A selections can be serialized and loaded directly into Grid B.

However, I need to load the selections into various other grids, all with very different structures and column layouts.

Is there anyway to easily serialize grid data and load into other grids, say based on Column ID, that have different structures to the original data?

I did write some Javascript to load based on Column ID, on a row by row basis. However for large numbers of selections it is painfully slow.

Can you let me know what my options are at this point?

Thanks,
David

You may only try to serialize your grid to xml:
var myXmlStr = grid.serialize();

You may configure which column must be serialized using the setSerializableColumns() method:
docs.dhtmlx.com/doku.php?id=dhtm … blecolumns

Here you can find a tutorial about the available grid serialization:
docs.dhtmlx.com/doku.php?id=dhtm … ialization