SelectedItem on RadPanelBarItem

2 posts, 0 answers
  1. Andrea
    Andrea avatar
    1 posts
    Member since:
    Aug 2010

    Posted 02 Sep 2010 Link to this post


    How can I get selectedItem on this xaml:

    <telerik:RadPanelBarItem IsExpanded="True" ItemsSource="{Binding listaMarche}" >

    where listaMarche is an observablecollection?

    There is another way to binding the SelectedItem of the RadPanelBarItem?

    Why I can bind the itemsource but not the SelectedItem in RadPanelBarItem?
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 07 Sep 2010 Link to this post

    Hello Andrea,

    You can use a ContainerBinding to bind the IsSelected property of the RadPanelBarItem items to a property of your business class. If you use a TwoWay mode databinding, you will know the selected item at all times through the value of the business property.

    I attached a sample project illustrating this approach. Please take a look at it and let me know if it works for you.

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