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

Selecting treeview nodes programmatically

1 Answer 108 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
paul
Top achievements
Rank 1
paul asked on 31 Oct 2008, 10:08 AM

Hi,

We're currently trying to use the treeview to display a tree view of a SNMP MIB. We load the hierarchical object from WCF and bind to the treeview successfully. We then load some information from WCF to determine which nodes on the treeview should be checked and which ones should be unchecked.

I've been reading about the current limitations of not being able to access the object s until they have been generated.

I've been following the thread about possible improvements to the way we can get access to all treeview nodes programmatically. Is this change likely to make it into the release next week?

If not, what is the best way to iterating through all nodes at all levels to set their check state.

Regards,

Paul Chapman

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 31 Oct 2008, 12:02 PM
Hello paul,

No - the "limitation" that you are talking about will not be changed for the official release.

For your scenario an easier solution will be available though. We have now an ItemGenerated event on the RadTreeView which you can use to make the necessary bindings (including the CheckState). This event will be available with the release next week.

Greetings,
Valentin.Stoychev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
paul
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or