PDA

View Full Version : How to update the panel region content?



SlashEMc2k
23 Nov 2007, 3:55 AM
How do you update regions?
Can someone point me in the right direction, I have looked at the examples and through the learn documents but they are a little bit empty with 2.0 at the moment /:)

The closest thing I could find was the feedviewer:
http://extjs.com/deploy/dev/examples/feed-viewer/view.html


If I have a tree with a split on the west region, and a grid in the center.
When I click a tree node, I want to be able to update the (west region) gridReader or change the component type to something else like a panel and update the content?




var myWin= new Ext.Window({
title: 'My Test Window',
width:700,
height:350,
plain:true,
layout: 'border',
tbar:topbar,
items: [tree, grid]
});

tryanDLS
23 Nov 2007, 8:24 AM
Regions are just Panels in 2.0. Give them ids and you can always access the via Ext.getCmp() and use the available Panel functions.