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
Returns
Section titled “Returns”array
serialized data as an array of JSON objects
Example
Section titled “Example”dgrid.serialize();
Details
Section titled “Details”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);