dhtmlxGrid - filtered grid and serialize()

Hello -

I have a grid with a couple of columns that use the filter feature via the #combo_filter plus a save feature using serialize() method to capture the xml data rows for server side use. Both filtering and saving works. But here’s the problem: When the grid has multiple rows and only shows 1 row via the filter then is saved, only that 1 row gets “serialized” even though the grid has multiple rows. What am I missing? What do I need to code so that all the rows in the grid gets serialized? Is there a way I can tell the state of the grid (filtered or not) so I can prevent user to save?

Any help would be appreciated.

Thanks!
Elmer

Hello,

setSerializationLevel(userData, selectedAttr, config, changedAttr, onlyChanged, asCDATA);

if you have used the above method and onlychanged is set to true, then the rows which have got changed only serialized.

Otherwise by default all the rows gets serialized.

docs.dhtmlx.com/doku.php?id=dhtm … ialization

Thanks,
Victor Johnson

Unfortunately such feature cannot be implemented using the serialization.
You may try to use the dataprocessor component:
docs.dhtmlx.com/doku.php?id=dhtm … cessor:toc

Hello,
I had a thought to disable or hide the save (I have it as button) when the grid is on filtered status. Is this possible? If so, any suggestions how to accomplish it?

Thanks again,
Elmer

grid.attachEvent(“onFilterEnd”, function(){
/Hide the save button here/
});

Thanks,
Victor Johnson

grid.attachEvent(‘onFilterEnd’, function (elements) {
var flag = false;
for (i = 0; i < elements.length; i++) {
var ele = elements[i];
if (ele[0].value.length > 0) {
flag = true;
break;
}
}
if (flag) {
/Hide/Disable Save button here/
}
else
{
/Show save button here/
}
});