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

Adding 'View More' option to radpanelbar

4 Answers 34 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 24 May 2010, 10:48 PM
Hi,

I'm using a radpanelbar to display my data but I want to only show three items per header unless the user clicks on a 'view more' control. I'm using a hierarchicaldatatemplate to bind the headers and a datatemplate for the items themself. I tried several ways of trying to show the control and have the right functionality but none of them worked:
- I added it to the datatemplate but then every item has the control.
- I tried creating an in-between datatemplate that has the control and another datatemplate for the items. This works correct but highlights all the items when mousing over them.

Any suggestions?

4 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 27 May 2010, 04:08 PM
Hi Steven,

Sorry for the late reply. Your scenario is pretty interesting so we need a little bit more time to come up with an solution. We will provide you with an answer tomorrow the latest. Let us know if you have questions meanwhile.

All the best,
Kiril Stanoev
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.
0
Accepted
Kiril Stanoev
Telerik team
answered on 28 May 2010, 08:26 AM
Hello Steven,

For this particular scenario, you will have to use a DataTemplateSelector when determining the DataTemplate for the sub-items. I've attached a sample project demonstrating one possible solutin to this scenario. Have a look at it and let me know if it helps. Also, if you have further questions or comments on the topic, do not hesitate to contact us. I'd be glad to further assist you.

Regards,
Kiril Stanoev
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.
0
Steven
Top achievements
Rank 1
answered on 28 May 2010, 01:43 PM
Thanks Kiril!!!
That's exactly what I was looking for.
0
Tina Stancheva
Telerik team
answered on 28 May 2010, 01:53 PM
Hello Steven,

We are glad that we were able to help.

Let us know if we can further assist you.

All the best,
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
Steven
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Steven
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or