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

Scrollable panel Right To Left Mode - Horizontal scrollbars missing

4 Answers 358 Views
ScrollablePanel
This is a migrated thread and some comments may be shown as answers.
Emanuel Varga
Top achievements
Rank 1
Emanuel Varga asked on 21 Jul 2010, 09:24 AM
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?

4 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 26 Jul 2010, 01:28 PM
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
0
Phillip Foster
Top achievements
Rank 1
answered on 02 Aug 2010, 07:10 PM
can we get the answer posted here for the rest of us please?  Thanks!
0
Emanuel Varga
Top achievements
Rank 1
answered on 02 Aug 2010, 07:19 PM
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
0
Boryana
Telerik team
answered on 06 Aug 2010, 08:37 AM
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
Tags
ScrollablePanel
Asked by
Emanuel Varga
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Phillip Foster
Top achievements
Rank 1
Emanuel Varga
Top achievements
Rank 1
Share this question
or