Sep 15, 2010, 5:09 PM
[CLOSED] [1.0] Call to grid function from child window
Hello,
How call a gridPanel function from a child window opened in frame mode?
The window open a "Add.aspx" page in frame mode and I need call a grid store refresh from this window to parent page with the grid.
with the next code:
Thanks
How call a gridPanel function from a child window opened in frame mode?
The window open a "Add.aspx" page in frame mode and I need call a grid store refresh from this window to parent page with the grid.
with the next code:
function NewWindow(container, winId, winURL, winTitle, winHeight, winWidth, winModal, winMax, winRes, winCollap, winIconCls) {
if (winTitle == '' || winTitle == undefined) { winTitle = 'Teste' }
if (winCollap == '' || winCollap == undefined) { winCollap = false }
if (winRes == '' || winRes == undefined) { winRes = false }
if (winModal == '' || winModal == undefined) { winModal = false }
if (winHeight == '' || winHeight == undefined) { winHeight = 500 }
if (winWidth == '' || winWidth == undefined) { winWidth = 500 }
var win = new Ext.Window({ renderTo: Ext.getBody(),
maximizable: winMax,
resizable: winRes,
collapsible: winCollap,
constrain: false,
title: winTitle,
height: winHeight,
width: winWidth,
modal: winModal,
iconCls: winIconCls,
frame: true,
layout: 'fit',
autoLoad: { maskMsg: "Cargando...", showMask: true, mode: "iframe", url: winURL }
});
win.show();
}
var ExecuteNewRecord = function (type, w, h) {
NewWindow(null, 'WinNew', 'Add.aspx?type=' + type, 'Nuevo elemento', h, w, false, true, true, true, 'icon_Add');
}
Is more complicated send you my real code. sorryThanks
Last edited by Daniil; Sep 16, 2010 at 8:48 AM.
Reason: [CLOSED]