PDA

View Full Version : dynamically add gridpanel from file to viewport



pm13
22 Aug 2011, 3:48 AM
Hi,

I am new to EXTJS and have created layout that has a borderlayout with a nested accordionlayout.

What I am trying to do is to dynamically add a grid to the center container depending upon what the user clicks in the accordion layout.

I tried using the autoload function but that didn't do anything and just loading the file along with the container doesn't work.
The grid I am using was loading via a window that was generated onload.

Does anyone have any suggestions as to how this can be done? I have searched google for 2 hours with no luck. I have attached my container and grid files
27596
27597

jay@moduscreate.com
24 Aug 2011, 5:21 AM
Having a namespace: "Ext.namespace('Grid'); " is dangerous and not very useful.


If you want to autoLoad components, you need to use the Ext JS Loader system. I have a detailed writeup here: http://www.sencha.com/blog/using-ext-loader-for-your-application/