RibbonBarTab with ImageUrl

4 posts, 0 answers
  1. Meninx
    Meninx avatar
    18 posts
    Member since:
    May 2007

    Posted 31 Dec 2012 Link to this post

    Hello,

    I used to use the old version of RibbonBar while it was developed by Russel Mason.
    Today I updated my telerik version to the  2012.3.1016.35 version, and for like every upgrade, some changes are to be made.
    I was surprised to see that the RibbonBar is not exactly the same, the RibbonBarTab don't have the ImageUrl property, as well as the ApplicationMenu.

    Is there a way to implement this in the next release ?

    I tried the change the css, inherting the ribbonbartab and override the RenderContents, but nothing worked well.

    Is there here a workaround to have this feature ?

    Thanks a lot !

    Regards
  2. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 03 Jan 2013 Link to this post

    Hello, Jean.

    In the initial releases of the RibbonBar, the tabstrip used was RadTabStrip. Yet, the Ribbon own tabstrip was a bit different according to the Microsoft specification. For instance no ImageUrl property or image attachment of any kind.

    When we began implementing it more closely we saw this difference and we fixed the tabs. Even better -- we made new tabs that are thin in all aspects -- features, JS, HTML and CSS weight.

    That said, the tabs can not be reverted to their previous form.

    You could try to work around that by using both CSS and JS, but it will not be an elegant solution. In short you will need to change the look of the tabs to using more CSS instead of images (think CSS rounded corners and not images). Then with JS you need to add span elements in each tab and apply styles to those as well.

    If the above sounds OK to you I could prepare a sample snippet for the default skin.

    Regards,
    Ivan Zhekov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Anton
    Anton avatar
    3 posts
    Member since:
    Nov 2008

    Posted 30 Jan 2013 Link to this post

    HI Ivan

    Could you please provide the Snippet for the default skin.

    Kind Regards,

  5. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 04 Feb 2013 Link to this post

    Hi, Anton.

    I have attached one way you could achieve something similar to ImageURL without being image URL and it's implications.

    Note that this is a custom scenario that's conflicting with the Ribbon's design and thus an unsupported one. It's highly unlikely that issues will arise from those changes, but in case those happen -- just remove the custom scripts.

    Regards,
    Ivan Zhekov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top