[CLOSED] [1.0] Call to grid function from child window

  1. #1

    [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:

    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. sorry

    Thanks
    Last edited by Daniil; Sep 16, 2010 at 8:48 AM. Reason: [CLOSED]
  2. #2
    Hello, edigital!

    Please investigate this example
    https://examples1.ext.net/#/Panel/Ba...Communication/

    I think there is a solution.
  3. #3
    Hi Daniil,

    In my case parent is null because the child is a window. Could be opener?

    Any example with windows?

    Thanks
  4. #4
    Hi Daniil,

    Sorry parent is not null, I investigate any more.

    Thanks
  5. #5
    Hi Daniil,

    Solved, thanks so much.

    Regards

Similar Threads

  1. Replies: 6
    Last Post: Feb 15, 2012, 4:15 PM
  2. [CLOSED] call parent js function from client window
    By majestic in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 29, 2010, 9:21 AM
  3. how to call code behind function through grid
    By harshad.jadhav in forum 1.x Help
    Replies: 1
    Last Post: Jul 10, 2010, 9:01 AM
  4. [CLOSED] How to call a javascript function from a child page?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 25, 2010, 5:40 PM
  5. [CLOSED] call function from child window
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Apr 29, 2009, 3:31 PM

Posting Permissions