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

[Solved] Horizontal scrollbar not working

1 Answer 166 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jerry Kurata
Top achievements
Rank 1
Jerry Kurata asked on 30 Aug 2010, 07:34 PM
Hi,

I have a RadGridView that has more columns that can be displayed when I set the RadGridView 's width to a small value such as 200.  However, the horizontal scroll bar appears or does not work.  I have tried setting the scrollViewer.HorizontalScrollBarVisibility="Visible" and = "Auto".  When I set it to "Visible" the scroll bar does appear, but there is no slider.

Any ideas on why this occurring?  I need to restrict the width of the grid.

Here is the definition of the RadGridView .  All columns are dynamically added to the RadGridView in code.  The RadGridView resides on a grid where the left column is a tree control, the center column is a GridSplitter, and the right is the RadGridView .

<telerikGridView:RadGridView x:Name="gridSAR" dragDrop:RadDragAndDropManager.AllowDrop="True" Loaded="gridSAR_Loaded"  
         AutoGenerateColumns="False" ShowGroupPanel="false"  RowIndicatorVisibility="Collapsed" CanUserSortColumns="True"
          HorizontalAlignment="Left" MaxHeight="600" MinWidth="897" ScrollViewer.HorizontalScrollBarVisibility="Visible"
         ElementExporting="gridSAR_ElementExporting" BorderThickness="2"  CellEditEnded="gridSAR_CellEditEnded"
          SARModuleViews:GridViewHeaderMenu.IsEnabled="True" SelectionChanged="gridSAR_SelectionChanged" Filtered="gridSAR_Filtered"
         ColumnReordered="gridSAR_ColumnReordered"   >

1 Answer, 1 is accepted

Sort by
0
Jerry Kurata
Top achievements
Rank 1
answered on 30 Aug 2010, 11:19 PM
I have a solution.  I added code to set the MinWidth property of each column.
Tags
GridView
Asked by
Jerry Kurata
Top achievements
Rank 1
Answers by
Jerry Kurata
Top achievements
Rank 1
Share this question
or