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

Listbox Horizontal Scroll

2 Answers 58 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.
Chris Castle
Top achievements
Rank 1
Chris Castle asked on 04 Dec 2007, 11:08 PM
I have a list box that I do not want the horizontal scroll to ever show.  I want the vertical if it is needed though.  How can I force the horizontal to never show?  I tried setting Visibility to hidden, but it still shows.

Thanks,
C

2 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 05 Dec 2007, 04:32 PM
Hi Chris,

The proper way to hide the horizontal scroll is the following:
 
RadListBoxElement elem = (RadListBoxElement)radListBox1.RootElement.Children[0];  
elem.HorizontalScrollState = ScrollState.AlwaysHide; 

If you have additional questions, do not hesitate to contact us.
 

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Angel
Telerik team
answered on 12 Dec 2007, 12:46 PM
A quick update, Chris. There will be an easier way to access the listbox element in the upcoming version of RadControls. The code from the previous post will be like this:

this.radListBox1.ListBoxElement.HorizontalScrollState = ScrollState.AlwaysHide;


Greetings,
Angel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Chris Castle
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Angel
Telerik team
Share this question
or