Hello,
I am having problems with the grid's built in ScrollViewer when the grid is resized. I am using AutoGenerateColumns to set up the grid from a DataTable. There are enough columns in the table that no matter the size of the window.
When I start the application the horizontal scrollbar in the ScrollViewer is active, but when I maximize the application it goes away, even though there are still too many columns to fix on a screen.
The structure of the view is
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<telerik:RadGridView AutoGenerateColumns="True"
Other properties to set bindings/>
<View:SomeView Grid.Row="1"
MinHeight="75"
Visibility="{Binding ShowThisView, Converter={StaticResource BooleanToVisibilityConverter}}" />
</Grid>
In the other view there is basically a grid and a chart. Selecting an item from the grid selects data for the view and opens it. If I select a row *before* maximizing then the scrollbar updates automatically, if not then it will not.
Also, if I seize the vertical scrollbar and scroll down part of the way, then the horizontal scrollbar snaps back into place.
Not sure what the problem is, something to do with the resize event, or how the columns are generated.
Thank you,
Eli
I am having problems with the grid's built in ScrollViewer when the grid is resized. I am using AutoGenerateColumns to set up the grid from a DataTable. There are enough columns in the table that no matter the size of the window.
When I start the application the horizontal scrollbar in the ScrollViewer is active, but when I maximize the application it goes away, even though there are still too many columns to fix on a screen.
The structure of the view is
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<telerik:RadGridView AutoGenerateColumns="True"
Other properties to set bindings/>
<View:SomeView Grid.Row="1"
MinHeight="75"
Visibility="{Binding ShowThisView, Converter={StaticResource BooleanToVisibilityConverter}}" />
</Grid>
In the other view there is basically a grid and a chart. Selecting an item from the grid selects data for the view and opens it. If I select a row *before* maximizing then the scrollbar updates automatically, if not then it will not.
Also, if I seize the vertical scrollbar and scroll down part of the way, then the horizontal scrollbar snaps back into place.
Not sure what the problem is, something to do with the resize event, or how the columns are generated.
Thank you,
Eli