Command binding RadTreeView/RadTreeViewItems

4 posts, 0 answers
  1. Frank -
    Frank - avatar
    8 posts
    Member since:
    Apr 2010

    Posted 14 Jun 2011 Link to this post


    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?
  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1251 posts

    Posted 17 Jun 2011 Link to this post

    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
  3. Buzz
    Buzz avatar
    36 posts
    Member since:
    Oct 2010

    Posted 09 Apr 2014 in reply to Pavel R. Pavlov Link to this post

    That link is broken.
  4. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1251 posts

    Posted 11 Apr 2014 Link to this post

    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.

    Pavel R. Pavlov

    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.

Back to Top