PDA

View Full Version : Rerender component on event



ctp
23 Oct 2010, 5:47 AM
Hi all,

how to rerender a particular component after an event is fired? In my case i wanna rerender the FieldSet 'gxmaps_fieldset' after 'activate' Event is fired:


gxpanel = Ext.extend(Ext.Panel, {
constructor: function (config) {
var config = Ext.apply(config || {}, {
title: 'Region'),
autoScroll: true,
items: [{
xtype: 'gxmaps_fieldset'
}],
listeners: {
activate: function() {...}
}
});
gxpanel.superclass.constructor.call(this, config);
}
});

Animal
23 Oct 2010, 5:49 AM
You can't "rerender". You probably mean something else.

What is is that you want to do?

ctp
23 Oct 2010, 11:38 AM
Hi Animal,

I'm rendereing a Google Map Panel within one of my tabs which reads the address from first tab as data. My problem is, how to render this map as new after the address was adited. Tab 1 address => Tab 2 map is rendered => Tab 1 new address => Tab 2 new map is rendered ...

Animal
23 Oct 2010, 1:38 PM
Do you mean re-center the map on the new address?

ctp
24 Oct 2010, 3:16 AM
Yepp, re-center the map is what I'm looking for ...