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

Change height of a ribbontab (DropDown)

4 Answers 266 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Dominik
Top achievements
Rank 1
Dominik asked on 04 Dec 2019, 03:00 PM

Hi

I adapted the height of a radRibbonBar with (radRibbonBarExpand):

            this.radRibbonBar1.RootElement.MaxSize = new System.Drawing.Size(0, 120);
            this.radRibbonBar1.RootElement.MinSize = new System.Drawing.Size(0, 120);

And wanted to change the height of the drop-downed tab the same size and tried (radRibbonBarDropDown):

            this.ribbonTab1.MinSize = new System.Drawing.Size(0, 20);
            this.ribbonTab2.MaxSize = new System.Drawing.Size(0, 50);

but the height stays the same. How is it possible to change this height?

 

Thank you in Advance

Kind Regards,

Dominik

 

 

4 Answers, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 09 Dec 2019, 08:51 AM

Hello Dominik,

According to your description, I suppose that you want to reduce the height of the RadRibbonBarGroup when the tab is expanded. This can be done as shown below:

this.radRibbonBarGroup1.MaxSize = new Size(0, 20);
this.radRibbonBarGroup1.MinSize = new Size(0, 20);

I hope this helps. Should you have any other questions, I will be glad to help.

Regards,
Nadya
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Dominik
Top achievements
Rank 1
answered on 09 Dec 2019, 10:29 AM

Hi Nadya,

Thank you for your answer. 

Unfortunately, the proposed solution did not work. I must have put the question wrong. I want the height of the expanded tab to be the same as the height of the dropdowned tab. This is only the case in the vanilla code (only the elements in the [Design] added nothing changed). As soon as I adjust the height, the tabs are no longer at the same height. Is it possible to bring the tabs back to the same height? I put the code and an image which shows the problem in the attachment.

Many thanks in advance

Kind Regards,

Dominik

0
Accepted
Nadya | Tech Support Engineer
Telerik team
answered on 12 Dec 2019, 06:38 AM

Hello Dominik,

Thank you for the provided additional information. It helps me to understand better your requirements. In order to achieve the height of the expanded tab to be the same as the height of the drop-down tab, you should set only MinSize/MaxSize to the RadRibbonBarGroups. I carefully reviewed the picture of the Designer.cs file that you have provided. I can suggest you to delete the row that sets the RootElement.MaxSize and set MaxSize of the group only. 

I attached my test project as well. Could you please give it a try and see how it works for you.

I am looking forward to your reply.

Regards,
Nadya
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Dominik
Top achievements
Rank 1
answered on 12 Dec 2019, 08:38 AM

Hi Nadya,

Thank you very much for your answer. It worked.

Kind Regards,

Dominik

Tags
RibbonBar
Asked by
Dominik
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Dominik
Top achievements
Rank 1
Share this question
or