XMl data from constructed grid


Hi,



IS there any API or way of getting the XML back from the grid, the one which was used to construct it?



 



Cheers



Gayathri


Hello,


there is serialize() method in grid (PRO edition). It returns xml string with the new grid structure (after editing).


Why do you need to get the same xml that was used to create it initially ?


It can be saved into some JS variable using your own code:


var xml = some_your_xml_string;


grid.parse(xml);


xml is the target string.


Thanks very much. I am constructing the grid by adding rows in JS. Thats y i need the XML from the grid which has been constructed. Can you please answer my question anout “Adding subgrid from JS”? Thats the reason am doing all these silly things :slight_smile:



 



Cheers



Gayathri


Please, see teh answer dhtmlx.com/docs/products/kb/inde … 47&a=15303