Required library edition:
Required library file: dhtmlxgrid.js
get actual xml of grid. The depth of serialization can be set with setSerializationLevel method
var str=mygrid.serialize();
See also: serializeToCSV, setSerializableColumns, setSerializationLevel