Its been quite sometime, I’ve been evaluating ExtJs Grid. So far so good and I love the control and API. I have some genuine doubts regarding deploying ExtJs Grid in production environment. Here they goes:
How can I deploy ExtJs Grid into a large-scale project? Suppose I have a huge project, which contains more than 100 Grids. In that case, how can I handle those Grids?
- Do I have to maintain seperate JavaScript file for each grid? That means, If I have 100 grids, do I need to maintain 100 JS files?
- Do I have to maintain a wrapper JS file, which can create all those my 100 Grids, as per ther arguments that I pass to a method?
Which one is better? Or is there any better methods available? Can someone please shed some info on deploying ExtJs Grid in a large-scale project?
Any help will be appreciated.
Thanks!
Can you explain your project? 100 grids or 100 models/datastores?
I would create a database with model/source/grid column definitions, and build the ext grids dynamically by mapping the data with json. This is pretty trivial once you make a beforeRender listener that has a ajax request within it, then in the success routine of the ajax you create or populate the model/source/grid definitions and … done.
You can see this technique (non grid) for example …
… and some json like what follows will produce a couple of ext items[] on the fly …