[CLOSED] CustomDirectEvents in UpdatePanel not refreshing

  1. #1

    [CLOSED] CustomDirectEvents in UpdatePanel not refreshing

    We have an ASP ImageButton that is inside of an UpdatePanel that triggers the display of an Ext Window. On save of the items inside the window, the UpdatePanel is updated and the window is hidden.

    Our problem is after the UpdatePanel is updated, the ImageButton no longer fires the DirectEvent to show the window. Below are samples of our CustomDirectEvents and UpdatePanel. How do we get the event wired up again after the UpdatePanel has refreshed? :confused:

    For simplicity, I added a button to the UpdatePanel (btnSave) to trigger the update instead of adding the code in the window that triggers the update.

    Direct Events:
    <ext:ResourceManager runat="server" ID="smExt" AjaxViewStateMode="Enabled" InitScriptMode="Inline" >
            <CustomDirectEvents>
                <ext:DirectEvent Target="${input.addEmployee}" OnEvent="ibAddEmployee_Click" />
            </CustomDirectEvents>
    </ext:ResourceManager>
    UpdatePanel:
    <asp:UpdatePanel runat="server" ID="upnlSaveMid" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:ImageButton runat="server" ID="ibAddEmployee" Text="Add Employee" CssClass="addEmployee" OnClientClick="return false;" />
            <asp:Button runat="server" ID="btnSave" Text="Test Update Panel" OnClick="btnSave_Click" />
        </ContentTemplate>
    </asp:UpdatePanel>
    Last edited by geoffrey.mcgill; Jul 20, 2010 at 5:26 AM.
  2. #2
    Hi joeRobee,

    Can you move the <asp:Button> outside the <asp:UpdatePanel>?
    Geoffrey McGill
    Founder & CEO

Similar Threads

  1. Refreshing....
    By nagesh in forum 1.x Help
    Replies: 8
    Last Post: Aug 02, 2012, 7:52 AM
  2. Replies: 3
    Last Post: Sep 16, 2011, 7:37 PM
  3. Refreshing a tab on activate
    By Lucasite in forum 1.x Help
    Replies: 0
    Last Post: May 10, 2010, 7:30 PM
  4. [CLOSED] GridPanel is not refreshing
    By Satyanarayana murthy in forum 1.x Premium Help
    Replies: 9
    Last Post: Apr 28, 2009, 8:45 AM
  5. Panel not Refreshing
    By EzaBlade in forum 1.x Help
    Replies: 8
    Last Post: Feb 04, 2009, 3:18 PM

Tags for this Thread

Posting Permissions