Hello
I have got a PanelBar to bind to a hierarchical datasource. However I'm not sure how to get this to work with template items.
That produces a PanelBar with default styling and three levels:
Parent Name
- Child Name
- Child Child Name
Now what I want to be able to do is turn each row into a template field so I style each level differently and add some other stuff, like button or image on each row.
Parent Name [button]
- Child Name [Image]
- Child Child Name [Textbox]
Thanks for any help you can provide.
I have got a PanelBar to bind to a hierarchical datasource. However I'm not sure how to get this to work with template items.
RadPanelBar1.DataSource = clients; |
RadPanelBar1.DataFieldID = "ID"; |
RadPanelBar1.DataFieldParentID = "ParentId"; |
RadPanelBar1.DataTextField = "Label"; |
RadPanelBar1.DataBind(); |
That produces a PanelBar with default styling and three levels:
Parent Name
- Child Name
- Child Child Name
Now what I want to be able to do is turn each row into a template field so I style each level differently and add some other stuff, like button or image on each row.
Parent Name [button]
- Child Name [Image]
- Child Child Name [Textbox]
Thanks for any help you can provide.