You seem to be a bit confused about the dojo/store API.
store.add(item)
is used to add new itemsstore.put(item)
is used to update items, but can often also be used to add new ones with a specific IDstore.remove(id)
is used to delete items
If you wrap your store with dojo/store/Observable
, e.g. new Observable(new Memory({ data: ... }))
, then the grid will update automatically when add
/ put
/ remove
are called.
See the dojo/store documentation for more information.
If you are wondering how to update records via the grid itself, have a look at the editor column plugin.