How to display radtabitem similar to radtab

2 posts, 1 answers
  1. york
    york avatar
    160 posts
    Member since:
    Jul 2012

    Posted 18 Apr 2012 Link to this post

    Currently the default radtabitem generated in code behind (C#) is like in RadTab_Silverlight.jpg (attacted). I want it to look like radtab in RadTab.jpg with image in radtabitem. How to do it dynamically?  Thanks.
  2. Answer
    Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 23 Apr 2012 Link to this post

    Hello York,

    In order to customize the style of the RadTabItems to look similar to the RadTab.jpg snapshot, you need to edit their default ControlTemplate. I attached a sample project to get you started. I modified the default Office_Silver style of the RadTabItems, please have a look at the changes I've implemented and let me know if they help.

    Also, as you need to display each item on top of the next one, you'll need to insert some custom logic for defining the ZIndex order of the items. By default each added item in the Items/ItemsSource collection of the RadTabControl is with a higher ZIndex than the previously added one. So in your case, you'll have to invert the ZIndex order of the items.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft R3 2016 release webinar banner
Back to Top