Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Saida on Jul 20, 2009 06:08
open dhtmlx forum
full xml serialization.

Is there any way to get cell attributes like 'type', 'style' and options of a cell, if the cell type is combo while serializing XML?

I tried :
gridOrderH.setSerializationLevel(false,true,false,true,false,false);
In this case, it's not serializing cell attributes.

I also tried :
gridOrderH.setSerializationLevel(true,true,true,true,false,true);
In this case, i am getting column attributes, but not cell Attributes.

Please let me know, is there any way to get cell attributes?

Thanks in Advance,
Saida
Answer posted on Jul 20, 2009 07:47
setSerializationLevel(userData, selectedAttr, config, changedAttr, onlyChanged, asCDATA) methos has parameters:
userData - enable/disable user data serialization
selectedAttr - include “selected” row's attribute in result XML
config - serialize grid configuration (only information about grid structure) 
changedAttr - include “changed” cell's attribute in result XML
onlyChanged - include only changed rows in result XML
asCDATA - output cell values as CDATA sections (prevent invalid XML)

Please find more information here how to add additiona attributes to the serialized grid http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Storing_additional_data.html#grid_art_userdata