Hi There,
I have a question about how you would set properties (like IsExpanded, IsSelected, IsEnabled, etc...) of the RadPanelBarItem using dynamic data from the item binding source when you are performing hierarchical data binding to a RadPanelBar (or even TreeView) control?
I have reviewed the "TreeView / Hierarchical Template" and "PanelBar / Data Binding" demo samples at http://demos.telerik.com/silverlight/default.aspx#PanelBar/DataBinding but they don't demonstrate the functionality I am after.
An example of what I would like to accomplish would be to data bind the IsExpanded & IsSelected properties of the RadPanelBarItem to data from my binding source so that when the RadPanelBar loads, one or more of the RadPanelBarItems are shown in an expanded/selected state automatically based on properties of my business object. I have included a example of what I would like the RadPanelBar to look like once data binding completes:
I can't seem to find a way to do this through data binding but I must be missing something. What is the best way to accomplish this?
Any help would be greatly appreciated.
Thanks, Richard
I have a question about how you would set properties (like IsExpanded, IsSelected, IsEnabled, etc...) of the RadPanelBarItem using dynamic data from the item binding source when you are performing hierarchical data binding to a RadPanelBar (or even TreeView) control?
I have reviewed the "TreeView / Hierarchical Template" and "PanelBar / Data Binding" demo samples at http://demos.telerik.com/silverlight/default.aspx#PanelBar/DataBinding but they don't demonstrate the functionality I am after.
An example of what I would like to accomplish would be to data bind the IsExpanded & IsSelected properties of the RadPanelBarItem to data from my binding source so that when the RadPanelBar loads, one or more of the RadPanelBarItems are shown in an expanded/selected state automatically based on properties of my business object. I have included a example of what I would like the RadPanelBar to look like once data binding completes:
Mail (Expanded and Selected by default) |
- Personal Folders |
- Deleted Items |
- Inbox (Selected by default) |
- etc... |
Contacts (Not expanded) |
Tasks (Not expanded) |
Notes (Not expanded) |
I can't seem to find a way to do this through data binding but I must be missing something. What is the best way to accomplish this?
Any help would be greatly appreciated.
Thanks, Richard