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

[Solved] TreeView malfunction?

2 Answers 30 Views
RadEditor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jane
Top achievements
Rank 1
Jane asked on 03 Oct 2007, 12:25 PM
I'm using the TreeView on a page but my problem is that:

  1. Treeview does not maintain state (selected node) during postback even if viewstate is enabled
  2. TreeView.SelectedNode is not set or does return wrong values???

Has anyone seen this before or maybe just have some ideas to try out?
It's hard to use the control for anything practical like this... :os

2 Answers, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 03 Oct 2007, 01:57 PM
Hi,

The state is lost because you probably recreate the control on each page load. If you do not rebind the treeview on postback then the problem might be that you have not set its ID property.

In any case, in order for us to help you, you will need to send us a sample of your code and show us how to reproduce the problem. Open a formal support ticket and attach the code there.

Greetings,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jane
Top achievements
Rank 1
answered on 04 Oct 2007, 06:13 AM
No need for a support ticket.
You were spot on regarding rebinding/setting up the tree view on each page load (including postbacks), I just didn't see that at first. It has now been changed to only setting up the treeview on new page loads...
Tags
RadEditor
Asked by
Jane
Top achievements
Rank 1
Answers by
Lini
Telerik team
Jane
Top achievements
Rank 1
Share this question
or