Highlight previously selected node after postback

3 posts, 1 answers
  1. Silver
    Silver avatar
    25 posts
    Member since:
    Feb 2012

    Posted 21 Feb 2012 Link to this post


    Hi,

    I wanted to 'highlight' previously selected node in my treeview after postback. I was using cookies to retain the treeview state after postback. Everything is working fine except after postback I am seeing parent node highlighted instead of child node.

    Please take a look at the images I attached.

    Childnode.jpg --> I selected node 'Baseball' and postback occurs
    Parentnode.jpg --> I see the 'US Sports' highlighted instead of 'Baseball' node.

    Any one?
  2. Silver
    Silver avatar
    25 posts
    Member since:
    Feb 2012

    Posted 22 Feb 2012 Link to this post


    Any one?
  3. Answer
    Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 24 Feb 2012 Link to this post

    Hi,

    By default the RadTeeView persists its selection across post-backs and it's not necessary to store its state in a cookie. Could you please elaborate a bit more on the exact scenario that you are trying to implement and why you are storing the state of the control in a cookie?

    Regards,
    Dimitar Terziev
    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