-
26 Jan 2013 3:42 AM #1
Refreshing a panel
Refreshing a panel
Dear all ,
I have a google map on a panel which is on a tab panel (1) .
Then there is a window floating(2).
Then there is button on the floating window (3). As shown in the image below.
I want to refresh panel 1 from button 3. And I am stuck how to do that please suggest me how to do it.
thanks
image.jpg
-
26 Jan 2013 7:11 AM #2
Make sure panel 1 has an id or itemId assigned to it. In the click handler of your button (or controller action) do an Ext.Viewport.down('<Panel ID Goes Here>').RefreshFunction().
Keep in mind. Every panel, container, button, link etc.. you see in your app... lives in your browsers DOM. As long as you can get a handle to it (by way of an ID or ItemID or other css queryabile attribute) ... you can do something to it.
Hope that helps
John
-
26 Jan 2013 7:37 AM #3
Dear Boston Merlin,
thanks but it is not working!!!.
Chrome is showing error like in the image Screen Shot 2013-01-26 at 4.34.57 PM.png
it is saying problem with down I did not get it.
Please help me out
-
26 Jan 2013 11:11 AM #4
.down() search for an itemId, Your Viewport need to be referenced in the controllerer and then you can try:
PHP Code:var MyViewport = this.getMyViewportRef();
MyViewport.down('#MyPanelMapItemId').RefreshFunction()
-
16 Feb 2013 6:25 AM #5
I tried everything.
But it is still not working.
My panel ID is mappan. so when I do
.Code:Ext.Viewport.down('mappan').RefreshFunction();
it is still showing the same error. Please help me. I am stuck on this for a ling time.
Uncaught TypeError: Object function constructor() { return this.constructor.apply(this, arguments) || null; } has no method 'down'


Reply With Quote