PDA

View Full Version : Beginners Grid Question



basementjack
27 Jun 2010, 7:24 PM
I'm reading the book 'Learning Ext JS' - which is an excellent book. (written before ExtJS 3 came out)

Chapter 5 talks about grids.
The setup isn't that bad, but it does involve manual setup work.

I would like to write some ad-hoc queries and have them render as nice sortable grids with the minimal amount of code required as I work out the queries.

My queries already return JSON formatted data - is there a quick way I can have the grid render itself based only on the JSON results without needing me to define the data store, columns etc?

- Jack

Condor
27 Jun 2010, 11:13 PM
There are user extension that can do that, e.g. this one (http://www.sencha.com/forum/showthread.php?76406-jsonStore-gt-panel.items&p=371353#post371353) (but there are also ones that guess the fields and columns based on the data).