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

Highlight previously selected node after postback

2 Answers 68 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Silver
Top achievements
Rank 1
Silver asked on 21 Feb 2012, 03:35 PM

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 Answers, 1 is accepted

Sort by
0
Silver
Top achievements
Rank 1
answered on 22 Feb 2012, 03:48 PM

Any one?
0
Accepted
Dimitar Terziev
Telerik team
answered on 24 Feb 2012, 12:05 PM
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.
Tags
TreeView
Asked by
Silver
Top achievements
Rank 1
Answers by
Silver
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or