Drag a column header and drop it here to group by that column
Id
Name
Bonus Meal
Organic
State
4315
cabbage
Papaya
Yes
675
asdasda
Apple
No
673
Apples
Banana
No
671
Cookies
Cucumber
Yes
669
Morning Tea
Cucumber
No
667
Morning meal
Buckwheat
Yes
665
Snacks and movie
Wheat
No
663
Apero
Lettuce
Yes
661
petit dej
Banana
Yes
659
Breakfast
Broccoli
Yes
Saving all the data (new items, changes, deleted items) on the client.
Using rowClickEdit instead of adding an edit button (you could add edit buttons instead like in other demos).
In case of validation errors grid loading will be prevented (happens when rowClickEdit: true).
<script> var dinners; var meals; var cid = 1; var clientOpt = { save: function(values) { var input = aweUtils.serializeObj(values); var din; if (input.Id) { din = awef.where(dinners, function(o) { return o.Id.toString() === input.Id })[0]; din.Changed = true; // changed on the client } else { // new din = { New: true, Id: 't' + cid++ }; dinners.push(din); }