Skip to content

serialize

serializes data to an array of JSON objects

function serialize(
// defines whether all data or only the filtered data are serialized
all?: boolean
): array

array serialized data as an array of JSON objects

dgrid.serialize();

By default, only the filtered data are serialized. To serialize all data, pass true as the second parameter:

grid1.filter(function(obj){
return obj.title.indexOf("The") !== -1;
});
const allData = grid1.serialize(true);