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

Trigger update of xml component

1 Answer 36 Views
TreeView
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:32 AM

Posted 0 minutes ago (permalink)

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
Sebastian
Telerik team
answered on 24 Mar 2009, 12:10 PM
Hello Chris,

The most convenient means to refresh your xml component which resides inside the RadAjaxPanel is to insert the treeview in the ajax panel and use ServerSide load on demand (since with client-side load on demand you can refresh merely the treeview control). Thus the nodes will be loaded with ajax calls and the entire set of controls inside the RadAjaxPanel will be refreshed when the request ends.

Kind regards,
Sebastian
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Chris
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or