PDA

View Full Version : Switch to new view inside TabPanel



Fatman
5 Sep 2011, 2:37 AM
I have a search form inside a TabPanel.
When the user clicks Search on the form, I want to go to a new viewpage to show the results.

I already have the results coming back via JSONP and thats working fine, I just dont know how to push a new view to display these results

Thanks
Andrew

NickT
8 Sep 2011, 8:45 AM
How about inserting a panel with a card layout inside your tab with the search control. then you can simply activate the results card when you want. So you would have a standard view card and then the results view card that would become activated based on your search event handling...



var p = new Ext.Panel({
fullscreen: true, layout: 'card', items: [{ html: 'Card 1' },{ html: 'Card 2' }] }); p.setActiveItem(1);