[CLOSED] Button event is not firing in parent window from popup window

  1. #1

    [CLOSED] Button event is not firing in parent window from popup window

    Hi,

    I have one main page which one is containing one text field and two buttons. The Direct event defined in main page for one button (called "btnRefresh") which is not not required to show visually in the page, and the other button will open popup window. I am able pass information from popup to text field in main page. In popup one button needs to pass one specific value to text field in main page and fire button event and also needs to close popup window.

    I have implemented btnRefresh event as

    Public Sub btnRefresh_click(ByVal sender As Object, ByVal e As DirectEventArgs)
            'functionality implementation code 
        End Sub
    
    <div style="display: none">
            <ext:Button ID="btnRefresh" runat="server">
                <DirectEvents>
                    <Click OnEvent="btnRefresh_click">
                        <EventMask ShowMask="true" Msg="Updating..." MinDelay="1000" />
                    </Click>
                </DirectEvents>
            </ext:Button>
        </div>
    In popup window I have added listener to button as which one is not showing the EventMask (means the event not firing)

    btnOk.Listeners.Click.Handler = "parent.pnlMain.getBody().txtInfo.setValue(lblPresentTime.getValue()); parent.pnlMain.getBody().btnRefresh.Click;parent.Ext.getCmp('WindowReqCond').close()";
    Instead of above if I implement as follows it is throwing error as 'parent.pnlMain' is null or not an object
    btnOk.Listeners.Click.Handler = "parent.pnlMain.getBody().txtInfo.setValue(lblPresentTime.getValue()); parent.Ext.getCmp('WindowReqCond').close();parent.pnlMain.getBody().btnRefresh.Click";
    Last edited by Daniil; Mar 21, 2011 at 8:08 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please try
    parent.pnlMain.getBody().btnRefresh.fireEvent('click');
    Well, the following code does nothing:
    parent.pnlMain.getBody().btnRefresh.Click
    It just calls .Click property of the button.

Similar Threads

  1. Confirm popup is below parent window
    By Yury in forum 1.x Help
    Replies: 2
    Last Post: Feb 28, 2012, 4:20 PM
  2. Replies: 7
    Last Post: Feb 09, 2012, 12:17 PM
  3. Replies: 1
    Last Post: Mar 14, 2011, 5:20 PM
  4. Replies: 1
    Last Post: Mar 11, 2011, 11:07 PM
  5. Replies: 2
    Last Post: Jan 07, 2010, 4:54 PM

Tags for this Thread

Posting Permissions