Scrollbar always visible

2 posts, 0 answers
  1. Tom
    Tom avatar
    1 posts
    Member since:
    Oct 2014

    Posted 16 Mar Link to this post

    I have this xaml code:

                        <telerik:RadListBox x:Name="ActiveUnitList"

                                            ScrollViewer.VerticalScrollBarVisibility="Hidden"

                                            ItemsSource="{Binding MyUnits}"
                                            ItemTemplate="{StaticResource UnitTemplate}"
                                            SelectedItem="{Binding MyUnits.MySelectedUnit, Mode=TwoWay}" />

    but the vertical scrollbar always shows up (even when the list of items fits in the listbox).  I've tried ...Visibility="Disabled" too but that didn't help.

    How can I force the scrollbar to disappear?

    -Thanks, Tom

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 17 Mar Link to this post

    Hi Tom,

    I have tried to reproduce the described behavior inside the ListBox Configurator online example, however, the vertical scrollbar in the second RadListBox appeared only when needed ( you could set  Multiple SelectionMode and select items in the first RadListBox).  Could you give us more details on your scenario?

    Regards,
    Yana
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft banner
Back to Top