PDA

View Full Version : One panel and differents grids



kabkab
21 Nov 2011, 7:48 AM
Hi,
With my project I started with creating a viewport with two panels : North and Center. In the north (Up) I will place my menu and in the Center (down) I will get the rest of my application. It can be forms or grids. I'm very interesting by the idea to generate dynamically the Center region components like here http://docs.sencha.com/ext-js/4-0/#!/api/Ext.container.Container (http://docs.sencha.com/ext-js/4-0/#%21/api/Ext.container.Container) with the Adding via remote configuration.

Can any one ride me to a working example?

mitchellsimoens
21 Nov 2011, 9:02 AM
So you want to make an Ajax call and then add a component into the center region based on the response?

kabkab
21 Nov 2011, 10:35 AM
Hi,
That's right.

mitchellsimoens
21 Nov 2011, 10:40 AM
So do just that.


Ext.Ajax.request({
url : 'someurl',
params : {...},
success: function() {
//do you adding of components
}
});

kabkab
22 Nov 2011, 1:23 AM
Hi,
Thank you for the interesting but your example is confused for me.

I give here a part of the source (It doesn't work at all) and my real problem is what I should change to tell to the ajax request in the lines 37 and 38 that it have to use what is in the line 100.

Thank you

kabkab
23 Nov 2011, 8:01 AM
Hi,
I'm sorry to insist but I searched in the forum and in a lot of other places but I didn't find any answer to my question. This question was so asked that I think it will be useful that someone write a tutorial.

Thanks,