Getting a Script Error after upgrading from 10.2 to 10.3
Have a WebDataTree inside an UpdatePanel along with a few dropdowns and buttons.
The webdatatree load fine but any posts backs from the dropdowns or buttons and we get a script error(axd) from the infragistics control. The error apparently causes the webdatatree to not post properly because the nodes that are selected in the webdatatree are not in the postback.
The webdatatree doesn't do anything crazy, we just look thru the checked records when a user hits save, but currently the checked records don't show up in the post back. The other controls post back and reload the webdatatree.
Where is the aspx code. The code for the dropdowns and checkbox just do a query and rebind the webdatatree. The Save button code loops thru the nodes and find checked items. But currenlty any autopostback or regular post back give me the script error.
<asp:UpdatePanel ID="upAll" runat="server"> <ContentTemplate> <table cellspacing="0" cellpadding="2" border="0"> <tr> <td width="100%" align="left" valign="middle"> <asp:dropdownlist runat="server" ID="ddType" AutoPostBack="True"> <asp:ListItem>Region</asp:ListItem> <asp:ListItem>Environment</asp:ListItem> <asp:ListItem>Device</asp:ListItem> <asp:ListItem>OS</asp:ListItem> </asp:dropdownlist> <asp:dropdownlist runat="server" ID="ddTeam" AutoPostBack="True" DataTextField="ContactGroupName" DataValueField="ContactGroupID"> </asp:dropdownlist> <asp:CheckBox id="chkUnApprovedOnly" runat="server" Text="Show UnApproved Only" Checked="True" AutoPostBack="True"></asp:CheckBox> </td> </tr> </table> <asp:label id="lblMessage" runat="server" cssclass="validator" /> <table cellspacing="0" cellpadding="0" width="100%" border="0" class="gridoutliner"> <tr> <td align="left"> <ig:WebDataTree ID="WebDataTree1" runat="server" CheckBoxMode="TriState" StyleSetName="Appletini" Height="550px"> </ig:WebDataTree> </td> </tr> <tr> <td width="100%" align="left" valign="middle"> <asp:button id="btnSave" runat="server" CssClass="FilterButton" Text="Save" Visible="True"></asp:button> </td> </tr> </table> </div> </ContentTemplate> <triggers> <asp:AsyncPostBackTrigger ControlID="ddType" EventName="SelectedIndexChanged" /> <asp:AsyncPostBackTrigger ControlID="ddTeam" EventName="SelectedIndexChanged" /> <asp:AsyncPostBackTrigger ControlID="chkUnApprovedOnly" EventName="CheckedChanged" /> </triggers> </asp:UpdatePanel>
Hi,
can you also add the scripts that you are using so that I can have a full sample. With the posted aspx the tree is empty, I've added some nodes but it appears OK when I do postback from changing the drop down.
I have a webdatatree and a dropdown in the same page.for dropdown SelectedIndexChanged event i am getting the following error
Microsoft JScript runtime error: Sys.InvalidOperationException: A control is already associated with the element.
I tried ur suggestion but of no use.Any other solution will be appreciated
By my experience about V10.3. your "JScript runtime error: Sys.InvalidOperationException" error is caused by different JS package Id in V10.3.
Double checking "<script type="text/javascript" id="Infragistics">" is in your code or not. If yes, you have to change the ID from "Infragistics" to "igClientScript"
Hopefully, it can give you a hand.
Zhiwei
Hi there,
I can't seem to be able to reproduce this issue on my end. Can you please provide a complete sample that reproduces the issue, so we can take a look at it! If you can also record a video of your activity leading to the issue we would greatly appreciate it in addition to the sample.
Thank you for using the Infragistics forums!