I have an editable grid bound to JSON data. After the binding is finished (.save()) is there a way for me to extract out the changed data in a JSON format without iterating through the grid’s items?
Thanks,
Michael
I have an editable grid bound to JSON data. After the binding is finished (.save()) is there a way for me to extract out the changed data in a JSON format without iterating through the grid’s items?
Thanks,
Michael
I just ended up removing all the data and repopulating:
var id= $$(‘mygrid’).first();
while (id!= null) {
$$(‘mygrid’).remove(id);
id = $$(‘mygrid’).first();
}
$$(‘mygrid’).parse(json_data, “json”);
there is a built in method
$$('mygrid').clearAll();