Try changing the property objectstore
to objectStore
. As far as I know it's case sensitive, so objectstore
is not the same as objectStore
. Even the grid.render()
is not necessary I think.
So your code would become:
dataStore = new ObjectStore({ objectStore: new Memory({ data: data }) });
I also made an example JSFiddle.
If that doesn't work, try using the startup()
function. Some widgets need to be completely rebuilt after changing the store and using something like the code below might help in your situation.
grid.startup();