This is a migrated thread and some comments may be shown as answers.

Panel doesn't update xml component

1 Answer 54 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 21 Mar 2009, 11:30 AM
My page has an xml component inside a RadAjaxPanel, as below:

 

<telerik:RadAjaxPanel ID="XmlViewPanel" runat="server" Height="200px" Width="300px">

 

 

<asp:Xml ID="xmlView" runat="server"></asp:Xml>

 

 

</telerik:RadAjaxPanel>

I also have a RadTreeView that uses LoadOnDemand (TreeNodeExpandMode.ServerSideCallBack) and when the clicks a treeview node that has no children, some xml is loaded into the component, as below:

 

 

xmlView.DocumentContent = "<?xml version=\"1.0\" encoding=\"utf-8\"?><root>" + node.InnerXml + "</root>";

How do I get the RadAjaxPanel to update its client Xml component, and cause the xml text to appear?

An example would be great. Thanks

Chris

 

 

 

1 Answer, 1 is accepted

Sort by
0
SamJ
Top achievements
Rank 1
answered on 21 Mar 2009, 11:49 PM
Hi Chris,

Can you tell if it works as expected if you disable RadAjaxPanel ajax?
I would suggest you to replace the RadAjaxPanel with regular Panel control and use RadAjaxManager to ajaxify the TreeView and the Xml control. I also think that you need to change the load on demand of the TreeView to ServerSide.

Regards,
SamJ
Tags
Ajax
Asked by
Chris
Top achievements
Rank 1
Answers by
SamJ
Top achievements
Rank 1
Share this question
or