Hide radListBox scrollbars

Thread is closed for posting
2 posts, 1 answers
  1. Franco
    Franco avatar
    27 posts
    Member since:
    Apr 2010

    Posted 17 Jun 2010 Link to this post

    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
  2. Answer
    Stefan avatar
    2911 posts

    Posted 23 Jun 2010 Link to this post

    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. 

    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