Adding 'View More' option to radpanelbar

5 posts, 1 answers
  1. Steven
    Steven avatar
    12 posts
    Member since:
    Aug 2009

    Posted 24 May 2010 Link to this post

    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?
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 27 May 2010 Link to this post

    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.
  3. DevCraft banner
  4. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 28 May 2010 Link to this post

    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.
  5. Steven
    Steven avatar
    12 posts
    Member since:
    Aug 2009

    Posted 28 May 2010 Link to this post

    Thanks Kiril!!!
    That's exactly what I was looking for.
  6. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 28 May 2010 Link to this post

    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.
Back to Top
DevCraft banner