DhtmlxGrid how to mesh preservation of data to which XML?

dhtmlXGrid an XML file can be loaded into the grid for which data. Well, after loading the grid by which the data, delete, change after the operation how to save and then loaded into the XML file which?

You can get  state of grid as XML through serialization

var xml = mygrid.serialize();

Variable “xml” will contain xml string with current state of the grid