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

Binding Checked Items in RadTreeView

1 Answer 104 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Deepak N
Top achievements
Rank 1
Deepak N asked on 29 Sep 2009, 07:08 AM
Hi,

I was not able to Bind Checked Items in RadTreeView to a list of predefined entities.

What is the preferred approach bind the list of hierarchical data in two way mode to checked Items in tree. So that check/uncheck will  update the bound list.

Regards,
Deepak N

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 01 Oct 2009, 08:16 AM
Hi Deepak,

Please refer to the following KB article:
http://www.telerik.com/support/kb/silverlight/treeview/radtreeview-and-hierarchicaldatatemplate.aspx

It is for Silverlight and explains how to use ContainerBindings, which is almost the same as using Style bindings in WPF.

The article explains how to bind the IsSelected and IsExpanded properties of RadTreeViewItem, but does not explain how to bind the CheckState. That is why, after going through the article, you can take a look at the attached sample projects.

The ContainerBindings.zip contains a Silverlight project demonstrating the functionality you are looking for, and StyleBindings.zip is its WPF equivalent.

Give it a try and let me know how it works for you.

All the best,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Deepak N
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or