View Full Version : Grid for arbitrary CSV data

16 Mar 2011, 11:42 AM
I have finally got a skeleton built from GridPanel extending the base class. :)

Now I want to replace/reimplement the store to parse JSON data that includes the column headers as well, as a last resort return CSV data.

I am aware that JSON has a meta fields property but was unable to make it work with Grid so I decided to take this extension on as a learning project.

My question is, where do I go from here? How do I specify or handle a JSON object that might include column names?

I have coblled togather the code to use an AJAx request to fetch the columns and reconfigure the grid to support dynamic columns but ideally I would prefer to query a single data source (once) and override the default column initialization with the column data from a JSON result?

Hopefully what I have asked makes sense? :)