Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Azeez on Jun 25, 2009 03:27
open dhtmlx forum
How to get cell attributes during grid serialization

Hi,
I am serializing a grid into a string using and then passing the resultant string as parameter for another grid's loadXMLAsString() method.Like below

gridOrderH.setSerializationLevel(false,true,false,false,false,false);
        xmlString = gridOrderH.serialize();
mygrid.loadXMLString(xmlString);

I am getting all the data but not the cell attributes. for eg one cell has a style attribute setting its background color to red in the first grid that is serialized. After serialization only the cell value comes in second grid(grid whose loadXMLAsString() is called). the cell color specified by the style attribute does not come. In short only cell values are getting serialized. I want to serialize the cells attributes also.pls help
Answer posted by dhxSupport on Jun 25, 2009 03:42
You should use:
gridOrderH.setSerializationLevel(false,true,false,true,false,false);