View Full Version : Dynamically Changing Table Datasource?

David Lamm
30 Jan 2011, 7:58 PM
Hi guys,

I'm trying to figure out how I can dynamically change the data source of an ExtJS table. (Ex. There a series of buttons besides the table saying "datafile1", "datafile2", "datafile3"..etc so when I click each of the data files, the ExtJS table dynamically changes it's source to whichever file I click.)

Preferably, this solution would work across iframes too, since we're trying to have a list of data files on a left iframe, and the ExtJS table on the right iframe where once the user clicks the data file on the left iframe it would change the ExtJS table on the right iframe.


30 Jan 2011, 9:17 PM
Have you researched browser restrictions on communications between iframe windows?

I guess you mean table when you say grid? If you needed to change a gridpanel dynamically you could reset the column model, then update the underlying store and have the new data fields contained in the metadata header. I haven't done this myself but it's contained in one of the examples.