How can reset RibbonGroup width and height?

4 posts, 0 answers
  1. ning
    ning avatar
    2 posts
    Member since:
    Mar 2009

    Posted 10 Apr 2011 Link to this post

    Hi,

    In our project, RibbonGroup will be designed to disappeared or only one RibbonGroup in per RibbonTab. But we found RibbonGroup cannot be reset height and width, even the width is set upper limit if it have many RibbonButton. So my question is how can reset RibbonGroup width and height?
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 11 Apr 2011 Link to this post

    Hello ning,

    What do you mean by reseting the width/height of the Groups? Can you please be a bit more specific or give me a simple example?

    Greetings,
    Simon
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. ning
    ning avatar
    2 posts
    Member since:
    Mar 2009

    Posted 11 Apr 2011 Link to this post

    code example

    RibbonBar.Width = Unit.Pixel(960);

    RibbonBarTab rbt = new RibbonBarTab();
    rbt.Text= "Tab1";
    RibbonBarGroup rbg = new RibbonBarGroup();
    rbg.Width =  Unit.Pixel(950);
    rbg.Height=  Unit.Pixel(30);
      
    RibbonBarButton rbb1 = new RibbonBarButton();
    rbb1.Text = "Button1";
      
    rbg.Buttons.Add(rbb1);
    rbt.Groups.Add(rbg);
    RibbonBar1.Tabs.Add(rbt);

    I want to create a RibbonBar with 960pix width, and it contains one RibbonTab  named 'Tab1'. This tab contains only one RibbonGroup, I hope this group's width is little smaller than RibbonBar however much buttons the grouop contains. But the reality is the group's will automatic resize to match the total size of buttons and the upper limit of its width is 300px, button will over border of group if the group have many buttons.
  5. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 15 Apr 2011 Link to this post

    Hi ning,

    Thank you for the clarification.

    We logged this as a possible feature to implement in future versions of RadRibbonBar.

    I also updated your Telerik points for the suggestion.

    Kind regards,
    Simon
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top