I'm stuck with a seemingly simple problem: appending data to my ExtJS Gridpanel. I have a gridpanel with some initial data set up.
var myData = [['data1','data2']];
var myReader = new Ext.data.ArrayReader({}, [
{name: 'Col1'},
{name: 'Col2'},
);
var datastore = new Ext.data.Store({
data: myData,
reader: myReader
});
grid = new Ext.grid.GridPanel({
store: datastore,
...
etc
This is all working fine.Now i would like to periodically append new data to this gridpanel (there is a function that is generating arrays of data). However I cant get this to work. Tried datastore.add, but to no avail.
Any ideas?