agraves
4 Oct 2007, 12:58 PM
Hello all,
I'm a web developer from Massachusetts. We're building a fairly large-scale application, and we're seriously considering using ExtJS for our ui.
Unfortunately, I'm having a really tough time getting started. The reference material is very good, but there seems to be very little in the way of explanatory texts.
In any event, here's the problem that's currently got me scratching my head:
I'd like to write a function that takes an array of data, such as:
["paris","france"],["boston","usa"]
and updates an existing Ext.grid.GridPanel. I'd like to be able to call this function as many times as I like, whenever I have new data.
My current solution is roughly this:
1) create an array
2) create a reader
3) create a datastore, passing it some dummy data and the reader
Everything works up until this point
Now I want to put new data in my existing grid, so I:
4) call removeAll() on the datastore
5) call my reader on the new array
6) call dataStore.add() on the array of records
But I get nothing back. What gives?
I'm a web developer from Massachusetts. We're building a fairly large-scale application, and we're seriously considering using ExtJS for our ui.
Unfortunately, I'm having a really tough time getting started. The reference material is very good, but there seems to be very little in the way of explanatory texts.
In any event, here's the problem that's currently got me scratching my head:
I'd like to write a function that takes an array of data, such as:
["paris","france"],["boston","usa"]
and updates an existing Ext.grid.GridPanel. I'd like to be able to call this function as many times as I like, whenever I have new data.
My current solution is roughly this:
1) create an array
2) create a reader
3) create a datastore, passing it some dummy data and the reader
Everything works up until this point
Now I want to put new data in my existing grid, so I:
4) call removeAll() on the datastore
5) call my reader on the new array
6) call dataStore.add() on the array of records
But I get nothing back. What gives?