I seem to be getting malformed xml out of my serialize calls from my treegrid… my xml is loaded dynamically and comes over in these two chunks:
<?xml version="1.0" encoding="UTF-8"?>
Announcement
Date
And then
<?xml version="1.0" encoding="UTF-8"?>
And the treegrid looks like this:
mygrid = new dhtmlXGridObject(‘D8’);
mygrid.setSerializationLevel(false,false,false,true,true);
mygrid.setImagePath("…/dhtmlx/imgs/");
mygrid.enableMultiline(true);
mygrid.setSkin(“modern”);
mygrid.setColTypes(“tree,ro”);
mygrid.kidsXmlFile = “FormReportBranchXml”;
mygrid.loadXML(“FormReportXml?P0=551239&P1=476&P2=476&P3=1188501790776&P4=false”);
But if I edit the “Important Mesage!” cell and serialize, I get xml that looks like this:
<?xml version="1.0"?>I chang\ed this05/28/2007
I.e. a bunch of close row tags with no corresponding open row tags. Am I doing something wrong?
problem caused by
mygrid.setSerializationLevel(false,false,false,true,true);
you specified to serialize only changed rows, but to maintain structure treeGrid need to provide parent rows as well - in result such mess occurs
We will update treeGrid serialization to the next build, for now please don’t use “serialize only changed” with treeGrid.
( If functionality really critical for you - please contact at dhtmlx@scand.com - probably I will be able to provide some kind of hotfix )