Dojo Editable-tree-dgrid : Create Or Generate A New Row Supported In The Dojo.store.jsonrest?
I am trying a dojo-dgrid which is both Tree and Editable. In that I have the requirement as follows, I have a Add Button/Icon in a column(usually last column) for the parent rows
Solution 1:
You would want to use put. The put method of the store is meant to insert or update an item.
var default_values = {somefield:'somevalue'};
default_values['parent'] = parent_id; //I have not actually defined parent_id
testgrid.store.put(default_values).then(function(result) {
testgrid.refresh();
});
Post a Comment for "Dojo Editable-tree-dgrid : Create Or Generate A New Row Supported In The Dojo.store.jsonrest?"