Contextual Tab Behavior

13 posts, 1 answers
  1. Kelly
    Kelly avatar
    73 posts
    Member since:
    Apr 2011

    Posted 08 Nov 2011 Link to this post

    Is there a simple way to get rid of the extra visual baggage that comes with Contextual tabs? I would like the convenience and simplicity of the IsActive property that comes with Contextual tabs, but I want all of my tabs to look alike. I don't want the extra header or the random colors.

    If I can't easily turn it off, then is there a simple way to make all of my tabs behave like contextual tabs? That is, I would like to be able to make them visible/invisible when a particular contextual item is selected. I tried the Visibility property of the RibbonTab to no avail.

    Thank you

    KO
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 10 Nov 2011 Link to this post

    Hi Kelly,

     You can easily change both styles related to contextual tabs - ContextualGroupsStyle and ContextualTabsStyle. Both are properties of the RibbonView, so you can set them to your preferred visual style (You can use Blend to get the default styles and modify them). You can clean them a bit if you need cleaner style. Please let me know if you need assistance doing it. 

    Greetings,
    Miro Miroslavov
    the Telerik team

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

  3. DevCraft banner
  4. Kelly
    Kelly avatar
    73 posts
    Member since:
    Apr 2011

    Posted 14 Nov 2011 Link to this post

    Is there any way I could just get the Visibility property of the RibbonTab to work? All I want to do is hide a tab based on a boolean in my model. Thanks.
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 17 Nov 2011 Link to this post

    Hi Kelly,

     You can find this realized for the RadRibbonView from Q3 2011. Please let us know if this is what you need.

    Regards,
    Petar Mladenov
    the Telerik team

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

  6. Kelly
    Kelly avatar
    73 posts
    Member since:
    Apr 2011

    Posted 17 Nov 2011 Link to this post

    Petar,

    That worked like a charm. Thank you!

    KO
  7. Kelly
    Kelly avatar
    73 posts
    Member since:
    Apr 2011

    Posted 17 Nov 2011 Link to this post

    Petar, I spoke too soon. Changing the RibbonView's Tab Visibility to Collapsed makes the tab disappear, but its contents remain visible. See attached captures. I can hide the contents by selecting another tab programmatically, but in some cases, I'll only have the one tab. In that case, the contents of the collapsed tab are visible forever.

    Thank you, KO
  8. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 22 Nov 2011 Link to this post

    Hi Kelly,

     We managed to reproduce this issue and we logged it in our PITS. We'll try to have this fixed for the Q3 Service Pack. Your telerik account points are updated as a thanks for your cooperation.
    Please excuse use for the inconvenience caused.

    Kind regards,
    Petar Mladenov
    the Telerik team

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

  9. Daniel Vaughan
    Daniel Vaughan avatar
    5 posts
    Member since:
    Feb 2010

    Posted 07 Dec 2011 Link to this post

    Hi Miro,

    The metro theme doesn't look very nice with the default contextual group tab template with the RadRibbonView. I customized the template but it looks like the highlight colors (red, blue, green etc.) are set programmatically. 

    How can I change or turn off the highlighting.

    Cheers,
    Daniel
  10. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 12 Dec 2011 Link to this post

    Hello Daniel Vaughan,

     The RadRibbonView control follows strictly an MS Guidelines document for creating a Ribbon-like controls with the Office 2010 "look and feel". Unfortunately, the backgrounds of the RadRibbonContextualGroup's Header are fixed and they cannot be changed.

    Kind regards,
    Petar Mladenov
    the Telerik team

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

  11. Daniel Vaughan
    Daniel Vaughan avatar
    5 posts
    Member since:
    Feb 2010

    Posted 13 Dec 2011 Link to this post

    Hi Petar,

    It's a shame because it effectively means that the RibbonView is not compatible with most of the styles. It's easy to disable the header color, but I have had much luck with the actual tab color.

    Cheers,
    Daniel
  12. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 15 Dec 2011 Link to this post

    Hello Daniel Vaughan,

    I am not sure if we're talking about the same thing since I believe we might have misunderstood your issue.

    Basically the RadRibbonContextualGroup control exposes a Color property to allow you to specify a color for the group. This color will not only be applied to the group's header, but to the header's of the tabs in this group. If the Color property isn't set, a list of predefined colors is used to colorize each ContextualGroup and its contextual tabs. You ca find more information about the Color property in our documentation.

    Also, as Petar noted the RadRibbonView control follows the MS 'ribbon UI' guidelines however, we are trying to expose properties to allow you to customize this default look to better fit your scenario requirements and design. This is why we'll highly appreciate any suggestions on how to further expand the RadRibbonView customization dimensions.

    Greetings,
    Tina Stancheva
    the Telerik team

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

  13. Daniel Vaughan
    Daniel Vaughan avatar
    5 posts
    Member since:
    Feb 2010

    Posted 28 Dec 2011 Link to this post

    Thanks Tina. That's what I was looking for.

    Cheers,
    Daniel
  14. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 29 Feb 2012 Link to this post

    Hi,

    We want to inform you that this issue is fixed in our latest official 2012 Q1 release.
    It will be great if you can give it a try and let us know if it works for you.

    On a separate note, I'd like to let you know that there are 5 brand new controls that we included in this release:
    - Diagrams (Beta)
    - GanttView (CTP)
    - TimeLine
    - ListBox (Beta)
    - DataBar
    When you have time, you can give them a try as we will highly appreciate your feedback.


    Regards,
    Vladislav
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top
DevCraft banner