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

Hide radListBox scrollbars

1 Answer 223 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Franco
Top achievements
Rank 1
Franco asked on 17 Jun 2010, 03:46 PM
Good morning.
    Is there a method to prevent horizontal scrollbar to appear in your radListBox control? I tried with the Autoscroll property, but True or False it's the same. My problem is the following: I have a radListBox docked (fill) in a split container. If a user changes the width of the split container, may cause the horizontal scrollbar to appear. When it appears, the vertical scrollbar automatically appears, too, and it's ugly to see. The vertical scrollbar should remain visible instead, if it was visible before user resizing.

Thank you
Franco

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 23 Jun 2010, 12:12 PM
Hi Franco,

Thank you for writing.

If I have understood your case correctly, your last RadListBoxItem is close to the bottom border of your RadListBox and you get both the vertical and the horizontal scrollbars when width of RadListBox is decreased. Generally, this behavior is correct, but if you really want to hide the horizontal scrollbar, you can do it as it is shown below:
this.radListBox1.ListBoxElement.ScrollLayoutPanel.HorizontalScrollState = Telerik.WinControls.UI.ScrollState.AlwaysHide;

I hope this helps. 

Regards,
Stefan
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
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Franco
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or