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

Large number of controls disappearing while editing ribbon UI

11 Answers 123 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 30 Apr 2009, 05:46 PM
I have entire button groups, ribbon groups, winForms controls, etc. that have disappeared from the form since I started creating my UI with the RibbonBar.

I looked in the designer and the controls are still there, they are just not being rendered.

Is this a known issue?  Is there anything I can do?


11 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 May 2009, 07:59 AM
Hello Michael,

Thanks for contacting us.

Could you please give us more information about the issue you experience? A sample application that manages to reproduce this behavior would be of a great help since I will be able to thoroughly investigate the case. Please note that you will have to open a support ticket in order to be able to attach the project.

I also recommend you uninstall your current version, make sure that all assemblies from the Global Assembly Cache which names start with Telerik.WinControls.* and the assembly TelerikCommon are removed and after that start a new, fresh installation of RadContols for WinForms. This may solve the issue that you have experienced.

I hope this will help.

Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Frank
Top achievements
Rank 1
answered on 27 May 2009, 03:30 PM
Hi.
I seems that Michael has confronted with the same problem I did.
I'm trying to resize a chunk by setting AutoSize to false. But when I do it, the chunk simply disappear like would it be invisible. the same happens with the elements in the chunk; when I try to resize or move them.
0
Deyan
Telerik team
answered on 28 May 2009, 06:34 AM
Hi Frank,

In generall, RadRibbonBarGroups (Chunks) and all elements which can be put in them are not designed to be sizable at design time. RadRibbonBar control implements a special layout mechanism which measures the available space for all chunks and the elements in them and takes care for their proper sizing and positioning. This requirement is also part of the Mictosoft UI Guidelines for designing Office 2007 type of UI.

Do not hesitate to write back in case you need further assistance.

Regards,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Frank
Top achievements
Rank 1
answered on 28 May 2009, 02:50 PM
So there is no way to resize a chunk or an element in the chunk at the design time?
Is it possible to do at run time?
Thanks.
Regards, Frank.
0
Frank
Top achievements
Rank 1
answered on 29 May 2009, 08:22 AM
I guess I've found the solution.
I just turned Autosize property to false and played with element's parameters in order to repozition elements in a chunk.
May be I'll succeed also to resize a chunk.
Regards, Frank.
0
Deyan
Telerik team
answered on 29 May 2009, 08:47 AM
Hi Frank,

I am happy that you have managed to overcome the problems you have encountered.

You could also try using the MinSize property of RadRibbonBarGroup (Chunk) in order to manually adjust its size. However, keep in mind that manually adjusting the size of the Chunks may lead to visual glitches.

I hope this will help. Do not hesitate to write me back if you have further questions.

Best wishes,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Frank
Top achievements
Rank 1
answered on 29 May 2009, 10:54 AM
Well, no. I resized the Chunk and all the elements I added to it  "jumped" in the left neighbor chunk. Is there any way to limit the number of elements in a line? I mean there should be 3 elements in a line, and the fourth should automatically jump in the next line. I try to achieve the same layout for the text formatting like it is done in office Excel 2007.
Thanks.
Regards, Frank.
0
Deyan
Telerik team
answered on 01 Jun 2009, 12:22 PM
Hello Frank,

Currently, there is no possibility to limit the amount of items in a horizontal line of a RadRibbonBarGroup. However, we can consider adding such possibility in future versions of this control and I would like to thank you for sharing this with us.

We will also hide the AutoSize property from the RadRibbonbarGroup property grid hence the functionality it provides is not relevant to the layout context of the RadRibbonBar control.

Do not hesitate to write us back if you have further questions.

Sincerely yours,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jason
Top achievements
Rank 1
answered on 18 Nov 2011, 01:34 PM
Michael,

I'm having the same problem. I was editing the Desktop Alert control on my form when suddenly I got an error message and all the controls on my ribbon disappeared. When I go into the form's designer, the code for them is there, but my ribbon won't render them. Did you open a support ticket at the time? Any resolution? I've opened a support ticket, but haven't heard back just yet and my application is hosed until I can get this fixed.

Thanks for any insight you can provide.
Jason
0
Jason
Top achievements
Rank 1
answered on 18 Nov 2011, 03:33 PM
Hi Michael,

I'm sure it's too late for you (post is from 2 years ago), but this will hopefully help if someone else stumbles upon the same issue. I had this same issue occur. I could see in the designer.cs that the controls were all there, but they were not being rendered. Doing a little experimentation, I found out what happened and how to fix it without starting over.

There is a bug somewhere in the Telerik Ribbon control that removes all the calls to add the items to the collections. In other words, the code is there to create the individual buttons and button groups, but the code to actually add them to their parent controls is removed by the telerik control. In my case, I had several groups with buttons arranged and events tied to the buttons so recreating them would have taken many hours. I'm not sure why this happens, but here is how to get them back without having to create them from scratch.  First, keep in mind that there is a hierarchy...

Ribbon Control
---Tab
------Ribbon Bar Group
---------Button Group (horizontal or vertical)
------------Button (or other control)
------------Button
...etc.

For each one, you'll just have to add the Tabs to the Ribbon Bar, the Ribbon Bar Groups to the Tabs, the Button Groups to the Ribbon Bar Groups and so on down the line. Although a bit tedious, it is a lot better than starting over.

Tabs can be added to the main ribbon with the following line:
this.MainRibbonBar.CommandTabs.AddRange(new Telerik.WinControls.RadItem[] { this.rbntabHome, this.rbntabView });
--put your tabs into the list at the end separated by commas. Also, MainRibbonBar should be the name of your ribbon bar.

All other collections in the hierarchy can be added with the following line:
this.grpSpecPlan.Items.AddRange(new Telerik.WinControls.RadItem[] {btngrpSpecPlan1, btngrpSpecPlan2});

This works for Ribbon Bar Groups to the Tabs, Button Groups, Buttons, etc. All of them. Just replace the parent and children.
this.[parent].Items.AddRange(new Telerik.WinControls.RadItem[] {[item1], [item2]});

Hope this helps someone down the line. I was literally freaking out thinking I was going to have to start all over.
Jason
0
Peter
Telerik team
answered on 23 Nov 2011, 01:07 PM
Hello all,

Jason is right - you should re-add the elements again regarding the RibbonBar structure.
I will summarize about the element sizes - we recommended to set the sizes to all elements inside the RadRibbonBar using MinSize/MaxSize properties instead of Bounds/Size properties.

Jason, please do not hesitate to contact us if you experience the issue again. We will be grateful if you can provide us with the exact steps to reproduce it. If you can reproduce the issue only on your machine, then we can investigate the issue on your machine though a GoToMeeting session, if this is an option for you. Of course, if we manage to reproduce (hence address) the issue thanks to your cooperation, you will earn the corresponding amount of Telerik points.

Best wishes,

Peter
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Tags
RibbonBar
Asked by
Michael
Top achievements
Rank 1
Answers by
Peter
Telerik team
Frank
Top achievements
Rank 1
Deyan
Telerik team
Jason
Top achievements
Rank 1
Share this question
or