Hi All,

Can we create a Dynamic Grid? Lets say I want to display a grid on the center region of the Viewport.
I'm following MVC approach in ExtJS 4.2.1 and hence I have defined a Model, View and controller for the Grid.

Now I want the Grid to be dynamic, which means, based on the JSON data coming from the server, I want to create the Grid. If JSON data gives 3 columns with Column Header name and Content, I should display 3 columns. If it gives data for 5 columns with Column Header name and content, I should display 5 coulmns.

Is it possible to have a common model to handle this?
Please share an example if possible.