Scrollable panel Right To Left Mode - Horizontal scrollbars missing

5 posts, 0 answers
  1. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 21 Jul 2010 Link to this post

    Hello,

    I recently discovered a problem with the scrollable panel with right to left mode enabled.
    The horizontal scrollbar is not showing when controls are out of bounds to the left (everything works fine if the same thing happens on the right side).

    Test scenario: Use a docked scrollable panel, set the autoscroll to true, set right to left to true
    Add one or more buttons in a line, set the anchor to top and right, and right to left to inherit.
    we can see that if we change the size of the form the buttons will go out of view, but no scrollbars will be shown...

    Is there a fix for this?
  2. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 26 Jul 2010 Link to this post

    Hello Emanuel Varga,

    Your question has already been addressed. Please refer to Ticket ID 330296.

    All the best,
    Boryana
    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Phillip Foster
    Phillip Foster avatar
    58 posts
    Member since:
    Apr 2010

    Posted 02 Aug 2010 Link to this post

    can we get the answer posted here for the rest of us please?  Thanks!
  5. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 02 Aug 2010 Link to this post

    Hello Phillip,

    The answer from telerik team is (it won't help much):

    Thank you for writing.

    The problem you have encountered is not related to the Right-to-Left property. Actually, it is a straight consequence of the default behavior of the standard WinForms Panel. If you try the same scenario with a standard Panel you will end up with the same problem - the horizontal scrollBar is not shown, even though the form is being resized.

    When designing the RadScrollablePanel our team decided to mimic the behavior of standard WinForms Panel. Unfortunately along with all its features, RadScrollablePanel has also inherited Panel's problems. You can avoid this issue through setting the Anchor property of the RadButtons to its default value - Top, Left.

    Let me know if you have further questions.

    Regards,
    Boryana
    the Telerik team

    But i can suggest something of a workaround (from msdn help)
    If you nest the right to left scrollable panel inside a normal panel with the parent's panel autoscroll set to true and right to left false, and the child panel autoscroll false and right to left then it should work in theory, sometimes it worked other times not so much... but it's a start.

    Best Regards,
    Emanuel Varga
  6. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 06 Aug 2010 Link to this post

    Hello everyone,

    Thank you for writing.

    If you dock a standard WinForms Panel, add standard buttons to the Panel, and set their Anchor property to Top, Right, you will note that when resizing the form, the scrollbars of the Panel are not shown. This is the essence of the issue Emanuel Varga reported.

    As I have already explained, our controls use some mechanisms of the standard WinForms controls. This implies that if there are any issues introduced in these mechanisms, the same issues will appear in our controls as well. Please note that changing these mechanisms is not in our scope and this is why we are not able to address the issue in the near future.

    I have already considered some workarounds and the most natural that popped up was nesting two RadPanels/RadScrollablePanels. However, as I tested different approaches, I came to the conclusion that neither of them would work in all cases. The only way to avoid the wrong behavior is to reset the Anchor property.

    Let me know if you have other queries or suggestions.

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