Basically I have WebHtmlEditor and WebCurrenty Editor in a usercontrol which for testing i called "ctlEditOffer", that control is hidden by default:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
<uc1:ctlEditOffer ID="ctlEditOffer1" runat="server" Visible="false" />
</ContentTemplate>
On the code behind for Button1 is the following code:
When Button1 is clicked, it correctly shows the control with the Infragistics editors, along with a javascript error "Object Expected"
so basically you cannot do anything with the infracontrols.
What I think its happening is not loading the javascript files required for the controls if there are in a UpdatePanel, any ideas?
Thanks
Hello,
I am trying to reproduce the issue, unfortunately to no avail. Please find the attached project sample below. What am I missing in my sample? Could you please send a little bit more additional information .
Thanks.
Ivan,
To reproduce the problem just add visible="false" to the control like:
<uc1:WebUserControl ID="WebUserControl1" runat="server" Visible="false" />
By default the usercontrol should not be visible.
The button click event should just be WebUserControl1.Visible = true;
Thanks,
Valentin
I see the same behavior. If I have currencyedit or numericedit fields inside an AJAX updatepanel, then the javascript doesn't load or work properly if they are not visible when the page first loads. For me, I have a gridview that defaults to view only. The user clicks Edit to open the details in a formview and the infragistic editors won't work there.
If I add an example of each infragistic editor control to the top of my usercontrol and make sure they are visible at the start, then the controls will end up working correctly when they are dynamically rendered later on. Is there any other way to force them to load?