Databinding and CurrentItem

2 posts, 0 answers
  1. madladuk
    madladuk avatar
    126 posts
    Member since:
    Dec 2009

    Posted 22 Oct 2010 Link to this post

    Hi. I have a treeview bound to my ria domain collection, however when I select an item in the try the current record is not changed. Is the treeview not dataaware? or have I missed something?
    <telerik:RadTreeView x:Name="radTreeView1"
                                 ItemTemplate="{StaticResource Persons}"

  2. Petar Mladenov
    Petar Mladenov avatar
    2992 posts

    Posted 27 Oct 2010 Link to this post

    Hi madladuk,

     You can bind the IsSelected property of the RadTreeViewItems  to property of an item in the RIA collection ( you have to use ContainerBindings --> ).

    Supposing that you  use a DomainDataSource to bind your RadTreeView, a key moment is handling the RadTreeView.SelectionChanged event like so:

    private void myTreeView_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangedEventArgs e)

    Hope this info helps you. Please feel free to let us know if you need further assistance.

    Petar Mladenov
    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
Back to Top