Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Benson on Jun 20, 2007 13:05
open dhtmlx forum
output xmlstr of Serliaze

I wriote some lines as following. (there is 2 rows in grid, and I modified one)

 grid.setSerializationLevel(false,false,false,true,true);
 var z=grid.serialize();

 "z" include two </row>in it which suports to be only one. What's the problem?
means: I think "z" should be "<rows><row><cell changed="1">3</cell></row></rows>" but the result is "<rows><row><cell changed="1">3</cell></row></row></rows>"

Answer posted on Jun 20, 2007 15:02
Are you use the mentioned code against the grid or against treeGrid ?
Such problem was reported and fixed for plain grid component in case of buffering or smartRendering, if it is your case - please contact us at dhtmlx@scand.com and provide your customer number - I will send you an updated version.

In case of treeGrid - situation is more complex, treeGrid serialization result must contain the correct parent-child structure, but in case of "only-changed" serialization - only changed rows must be in result xml, because those two instructions confict with each other. The serialization of only-changed rows in case of treeGrid works not good. The oncoming version of grid 1.4 will have more strict hierarchy and will work correctly in described case. If you need fix ASAP - I can provide some kind of workaround - but it is still not universal.
Answer posted by Nadine (Support) on Dec 02, 2014 10:10

The information connected with combo box and spread sheet software also can help you, so please check it too.