Reloading Nodes

3 posts, 0 answers
  1. Amit
    Amit avatar
    23 posts
    Member since:
    Jul 2008

    Posted 02 Oct 2008 Link to this post

    Hi,
    I'm using a TreeView with ExpandMode=ServerSideCallback and it's working fine. However, in certain situations I want to reload from a certain node (and all its children), without having to reload all the other nodes which were already loaded.
    A situation for example where I might need it - a popup window was opened, where some data changes can be made. Once it is saved or closed, a client-side function in my page is called, and now I want to reload some data from the server which would update a relevant node (but again, without having to reload the whole tree).
    How can I achieve this?
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 02 Oct 2008 Link to this post

    Hi Amit,

    You could use RadAjaxManager to initiate an AJAX callback to the server whenever this is necessary. Then use the Response Scripts of the AjaxManager to execute (return) some JavaScript (generated on the server) which will update the TreeView on the client.

    Please these topics for more information about the mentioned techniques:
    I hope this helps.

    Best wishes,
    Simon
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Amit
    Amit avatar
    23 posts
    Member since:
    Jul 2008

    Posted 05 Oct 2008 Link to this post

    Hi Simon, thanks for the answer.

    Wouldn't I be able to do what you're describing in RadControls for ASP.NET as well? Is there any advantage for the RadControls for ASP.NET AJAX in this aspect?
Back to Top