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

Command binding RadTreeView/RadTreeViewItems

3 Answers 88 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Frank -
Top achievements
Rank 1
Frank - asked on 14 Jun 2011, 11:39 AM
Hi,

I'm building an Silverlight application using PRISM/MVVM and VB.NET. Currently I'm struggling with creating a Tree control of two Lists that I have in my ViewModel. The lists are quite simple, and I build the relation between them in my ViewModel. The Parents is default OptionType and the Childrens are of OptionType Checklist, looking like this:

Parent 1
    [X] Child 1
    [  ] Child 2

Parent 2
  [  ] Child 1
  [X] Child 2

My problem is to communicate from the view to the viewmodel the Uncheck/Check behaviour of the RadTreeViewItems!
What is the most correct and easy way to do this in PRISM/MVVM? I've tried using commands, but command binding is not supported in RadTreeView yet?

3 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 17 Jun 2011, 11:12 AM
Hello Frank -,

Instead of using commands and events, you can bind the RadTreeViewItems CheckState property to a business property from your ViewModels. You can find more info here.

Give this a try and let me know if this is what you had in mind.

Best wishes,
Tina Stancheva
the Telerik team
 
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
 
0
Buzz
Top achievements
Rank 1
answered on 09 Apr 2014, 12:27 PM
That link is broken.
0
Pavel R. Pavlov
Telerik team
answered on 11 Apr 2014, 03:16 PM
Hi Buzz,

Thank you for reporting this issue. Please keep in mind that the corresponding link was supposed to lead to an article describing how the feature should be used in data binding scenarios.

However, this feature is designed to be used in XAML defined scenarios, only. This is why we updated the article.Please take a look at this article and let us know if you need any further assistance.

Regards,
Pavel R. Pavlov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Frank -
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Buzz
Top achievements
Rank 1
Share this question
or