I am using a RadTreeView to update a panel that contains a 3rd part Charting control (I am using flow charts and org charts which, I believe, RadChart doesn't yet do). If I do not use an AsyncPostBackTrigger, everything seems to work just fine. The chart control, along with all the other detail information loads correctly when the RadTreeView node is clicked and the OnClick event I defined in the codebehind file is run on the server.
But, if I add an AsyncPostBackTrigger, as described in this post:
I get this error:
Microsoft JScript runtime error: Object expected
and the area of code that is highlighted in the debugger is this bit:
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /> |
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /> |
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTE0NTg2NDI1OA9kFgICAw9kFgICAw8UKwACFCsAAhQrAAIPFgIeF0VuYWJsZUFqYXhTa2luUmVuZGVyaW5naGQQFgFmFgEUKwACZGQPFgFmFgEFc1RlbGVyaWsuV2ViLlVJLlJhZFRyZWVOb2RlLCBUZWxlcmlrLldlYi5VSSwgVmVyc2lvbj0yMDA4LjIuODI2LjIwLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPTEyMWZhZTc4MTY1YmEzZDRkZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFDFJhZFRyZWVWaWV3MUnSvyNIwNtgpsSxyXE70wJc5PJd" /> |
The yellow highlighting, indicating the location of the error, starts between the first and second "d" in the word "hidden" in the second line of code, and it extends to halfway through the large encrypted value in the third line.
If I remove the chart control from the page, then there is no error. If I remove this code:
<Triggers> |
<asp:AsyncPostBackTrigger ControlID="RadTreeView1" EventName="NodeClick" /> |
</Triggers> |
...there is no error either.
Here is the definition of my RadTreeView control:
<telerik:RadTreeView ID="RadTreeView1" runat="server" Height="600px" Width="400px" |
OnClientNodePopulating="nodePopulating" LoadingStatusPosition="BelowNodeText" OnNodeClick="RadTreeView1_NodeClick" > |
<WebServiceSettings Path="WebServiceProxy.asmx" Method="GetTreeViewNodes" /> |
<CollapseAnimation Duration="100" Type="OutQuint" /> |
<ExpandAnimation Duration="100" /> |
<Nodes> |
<telerik:RadTreeNode runat="server" Checkable="False" Text="MyRootNode" Value="0|0" ExpandMode="WebService"> |
</telerik:RadTreeNode> |
</Nodes> |
</telerik:RadTreeView> |
I am not sure how to proceed in debugging this.
Does anyone have any suggestions as to what this might be?
Thanks
PS: I get this error if I use telerik:RadAjaxManger or UpdatePanel. Both give the same results. UGH. How frustrating to come this far with this, and now be shut down.