Normal 0 false false false EN-US X-NONE X-NONE
I created an updatepanel inside the webexplorerbar and added a button in it. the onClick event of button was not not fired at all, please see code below:
<form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <ig:WebExplorerBar ID="WebExplorerBar1" runat="server" GroupContentsHeight="" Width="250px"> <Groups> <ig:ExplorerBarGroup GroupContentsHeight="" Text="Group"> <Items> <ig:ExplorerBarItem TemplateId="Template1" Text="Item"> </ig:ExplorerBarItem> </Items> </ig:ExplorerBarGroup> </Groups> <Templates> <ig:ItemTemplate ID="WebExplorerBar1Template1" runat="server" TemplateID="Template1"> <template> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> </ContentTemplate> </asp:UpdatePanel> </template> </ig:ItemTemplate> </Templates> <AutoPostBackFlags ItemClick="On" /> </ig:WebExplorerBar> </div> </form>
Any help will be appreciated
Hi ussidiqi,
I would just like to let you know that the fix for development issue 102923 for WebExplorerBar has been released in the latest SR. Upgrading your product version to the latest SR should resolve the issue. Please do not hesitate to contact me if you experience any issues with this matter.
Hi usiddiqi,
Thank you for the sample.
I have tested your sample in debug mode and the ButtonClick handler is executed as expected when the templated button is clicked. You can place the following line in the handler in order to observe this in the output of VS:
System.Diagnostics.Debug.WriteLine("Button Clicked");
As per to why the button's text is not updated, this seems to be related to an existing development issue (#102923) with buttons templated in WebExplorerBar. A support ticket has been created for you with an ID of CAS-88363-ZH6FNN and the issue has been associated with this case so that you will be notified when a fix is available.
I will leave this case open and update you with any new information after the review. You can also continue to send updates to this case at any time.
You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing this case on the web site.
Please let me know if you need more information.
hi Petar
Thank you for posting in the community.
In this scenario the autopostback which takes place upon item click seems to be suppressing the callback generated by clicking the templated button . Turning the autopostback on itemClick off (using version 11.2.20112.2086) seems to resolve the matter.
Please let me know if this helps.