This is a migrated thread and some comments may be shown as answers.

How can reset RibbonGroup width and height?

3 Answers 106 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
ning
Top achievements
Rank 1
ning asked on 10 Apr 2011, 03:09 PM
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?

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 11 Apr 2011, 12:23 PM
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
0
ning
Top achievements
Rank 1
answered on 11 Apr 2011, 04:41 PM
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.
0
Simon
Telerik team
answered on 16 Apr 2011, 12:29 AM
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.

Tags
RibbonBar
Asked by
ning
Top achievements
Rank 1
Answers by
Simon
Telerik team
ning
Top achievements
Rank 1
Share this question
or