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

Autoscroll

5 Answers 465 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 29 Feb 2012, 06:10 PM
How do i get scroll bars to appear on a radribbonform.
I have a simple project with a radribbon form and a rad panel
I have set autoscroll to true but the scroll bars do not appear as the form is resized

5 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 05 Mar 2012, 05:57 PM
Hello Martin,

Thank you for writing.

In general, RadRibbonForm comes with the standard Windows Forms Panel in it. You can set its AutoScroll property and when a control goes outside of the panel bounds the scroll bars will appear. However, in order to have consistent look with the other controls, I would suggest that you replace the Panel with RadScrollablePanel, which is a component with scroll bars that can be themed.  

More information regarding the RadScrollablePanel can be found here: http://www.telerik.com/help/winforms/panels-and-labels-radscrollablepanel-overview.html.

Attached you can find a video where I am creating RadRibbonForm and placing a control which goes out of the bounds of the panel, and after setting the AutoScroll to true the scroll bars appear. Then I am changing this panel with RadScrollablePanel, and the scroll bars work correctly again. 

I hope that you find this information useful. Let me know if you still experience this issue.
 
Regards,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Martin
Top achievements
Rank 1
answered on 05 Mar 2012, 06:18 PM
Thanks

My problem is that when i set Autoscroll to true and resize the form scroll bars do not appear.

This can be reproduced by creating a new project in VS2010 add a radribbonform. Set autoscroll to true and run the project. If the form is resized the scroll bars do not appear.I am using radcontrols 2012 Q1
0
Ivan Todorov
Telerik team
answered on 08 Mar 2012, 02:34 PM
Hello Martin,

RadRibbonForm does not take into consideration the AutoScroll property since this form is always used with a RadRibbonBar docked on the top and the scrollbars would also scroll the ribbon which is not desired. To enable scrolling on such a form, you should enable the AutoScroll property of the content panel that is placed below the ribbon by default. Also, as my colleague Stefan mentioned in his last post, if you want to achieve consistent look and feel, you should replace the default Panel with a RadScrollablePanel.

I am sending you a sample project which demonstrates this. I hope you find it useful.

Do not hesitate to write back if you have any additional questions.

Greetings,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Martin
Top achievements
Rank 1
answered on 13 Mar 2012, 01:06 PM
Hi

Thanks for the demonstration project but i am confused.

If i run the project and resize the form scroll bars do not appear.

The RadRibbonForm and the RadScrollablePanel have their autoscroll parameter set to true as described in the previous post

Is this a bug????

If I reduce the size of the RadRibbonBar then scroll bars do appear
0
Ivan Todorov
Telerik team
answered on 16 Mar 2012, 09:47 AM
Hello Martin,

I am not sure what is the reason for your confusion. The example I have sent you seems to work correctly on my end. I am sending you a short video which demonstrates the actions I took in order to create the add the scrollable panel to the ribbon form. If there is still something that is not clear to you, do not hesitate to write back. You can also send me some sample code or a sample project which I can use to get familiar with your scenario. This might help me provide you with more accurate responses.

Please note that you have to open a new support ticket in order to be able to attach your files.

Let me know if you have further questions.

All the best,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
RibbonBar
Asked by
Martin
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Martin
Top achievements
Rank 1
Ivan Todorov
Telerik team
Share this question
or