Is there a way to scroll the selected node of an ASP.Net TreeView into view after a postback?
In my parrticular scenario the control is repopulated after each postback.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I figured it out. The TreeView control creates a javascript object on the client. It is named whatever you called the treeview with a ‘_Data’ appended. The object lets you get a reference to the selected node.
The code below uses the ASP.Net Ajax extensions. Just remember to change the TreeView name to whatever you called yours.