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 got the same error when I use WebdataTree in UpdatePanel and use one Button to trigger WebDataTree fresh. My Version is 10.3.
Did you get some resolutions yet?
Thanks
Zhiwei