setSerializationLevel

In a grid with a enterable checkbox I set

myGrid.setSerializationLevel(true,false,false,true,true,true)
myXML = myGrid.serialize();

but the result is always

<?xml version="1.0"?>.

Could it be that unchecking/checking a checkbox is not accepted as “row modified”?

If the checkbox was (un)checked directly clicking by a user the row should be serialized as a changed.

If the checkbox state was changed by API it won’t be marked as changed. You need to mark it manually:
myGrid.cellById(row_id,col_ind).cell.wasChanged=true

Won´t work - I try to set an event but also won´t work.

var myGrid = main_layout.cells(“b”).attachGrid();
myGrid.enableTreeGridLines(true);
myGrid.setImagePath(“/dhtmlx/imgs/”);
myGrid.setSkin(“dhx_web”);
myGrid.enableAlterCss(“”,“”);

myGrid.attachEvent("onCheck", function(rId,cInd,state){

alert(rId+" / “+cInd+” - "+state);

 myGrid.cellById(rId,cInd).cell.wasChanged=true;
});

myGrid.loadXML("myfilename", function () {
 myGrid.expandAll();
});

The onCheck event fires and the 3 params are correct but still no sucess during serialisation.
68F33EC3-EE9D-0A4C-AF16-0C2B396DD234.rar (653 Bytes)

Unfortunately the serialization of the changed child rows in a treegrid is not available.
If the feature is a mandatory for you please, open ticket in the support.dhtmlx.com so the custom fix could be created for your needs.

You should make a note in the manuall.

Is serialization possible in a tree grid without setting the level???

serializarion of the top level rows works well.