Trigger update of xml component

2 posts, 0 answers
  1. Chris
    Chris avatar
    6 posts
    Member since:
    Mar 2009

    Posted 21 Mar 2009 Link to this post

    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

     

  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 24 Mar 2009 Link to this post

    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.
Back to Top