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)
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();
});