Autoscroll

6 posts, 0 answers
  1. Martin
    Martin avatar
    6 posts
    Member since:
    Jun 2011

    Posted 29 Feb 2012 Link to this post

    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
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 05 Mar 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Martin
    Martin avatar
    6 posts
    Member since:
    Jun 2011

    Posted 05 Mar 2012 Link to this post

    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
  5. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 08 Mar 2012 Link to this post

    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 >>
  6. Martin
    Martin avatar
    6 posts
    Member since:
    Jun 2011

    Posted 13 Mar 2012 Link to this post

    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
  7. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 16 Mar 2012 Link to this post

    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 >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready