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

SelectedItem on RadPanelBarItem

1 Answer 75 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Andrea
Top achievements
Rank 1
Andrea asked on 02 Sep 2010, 02:01 PM
Hello,

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?

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 07 Sep 2010, 04:08 PM
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
Tags
PanelBar
Asked by
Andrea
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or