Jul 14, 2010, 9:51 PM
[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:
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.