Rad Tree View Reloading after a postback

3 posts, 0 answers
  1. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 20 Sep 2012 Link to this post

    Hi friends,

    I am having a scenario where I am using radtree more likely the windows explorer's folder tree view, and there are certain scenarios where I need to open up a new a new radtab OR even a browser tab.

    I tried to dig this up in forums but all that I found at most places was a suggestion to use "SelectedNode.Selected=true;" That does work for the same page holding off the node selected,

    but what if I do post back / open up a new rad tab / open up a new browser tab-window ?

    In theory all these ways should be seems-less.

    I have that rad-tree in the master page so I **should** be able to store and use it in the page_Load even in the master page's code behind - would you please post a code demonstrating this ?

    Is it possible way may be to use the session variables and retrieving the same on the other page, if so I'd like to request a demo for that.

  2. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 21 Sep 2012 Link to this post

    Anyone for the demo code ???

    I am still evaluating telerik ...
  3. Plamen
    Plamen avatar
    3049 posts

    Posted 21 Sep 2012 Link to this post

    Hello Aarsh,

    You can refer to this Code Library where is provided one way to Save the expanded state of the TreeNodes when the treeview is being bound upon each Postback.

    Hope this will be helpful.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top