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

Contorls for Silverlight - Panel Bar - Data Binding

1 Answer 17 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 14 Jul 2011, 02:49 PM
Hi

Basically, I have the following data:



My requirement is to achieve the following:

1. The CategoryName to be parent if the ParentID is 0
2. The CategoryName to be child of the respective parent if the ParentID is non-zero.

How can i achieve this?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 14 Jul 2011, 04:36 PM
Hello Kevin,

The RadPanelBar inherits from RadTreeView. So, you can use the approach described in this help article showing how to bind RadTreeView to self-referencing Collection. You can also try this realized in the attachment.

All the best,
Petar Mladenov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
PanelBar
Asked by
Kevin
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or