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

RadGrid ScrollViewer does not resize with grid

5 Answers 192 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Eli
Top achievements
Rank 1
Eli asked on 19 Oct 2012, 07:16 PM
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

5 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 22 Oct 2012, 06:03 AM
Hi Eli,

 We have recently fixed a similar issue. May I ask you to test with the just released Q3 2012 version and let me know about the result? 

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Eli
Top achievements
Rank 1
answered on 23 Oct 2012, 06:45 PM
Didie,

Thank you for the prompt reply. I did get the Q3 version and replaced all of the references with the newer .dll(s).

Unfortunately, we am still having trouble with the grid. It looks like it should work when I first maximize the screen, but as I scroll down the scrollviewer's visibility cuts on and off, and at certain points it is visible but disabled.

I tried the program on multiple monitors and resolutions, it seems to depend on if the columns line up with the end of the screen, if the columns do line up with the edge of the screen then the problem occurs.

If the scrollviewer is enabled and visible and I actually scroll to the right, then from that point on it works perfectly.


Eli
0
Dimitrina
Telerik team
answered on 24 Oct 2012, 11:42 AM
Hi,

 May I ask you to share how exactly have you defined your columns, what are their Widths?

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Eli
Top achievements
Rank 1
answered on 24 Oct 2012, 12:56 PM
The columns are autogenerated, their widths are presumably set when they are generated.
0
Dimitrina
Telerik team
answered on 25 Oct 2012, 10:57 AM
Hi,

Thank you for clarifying. We have tested this scenario, but we were not able to reproduce the issue.

Please find my test project attached for a reference. Would you please show me how the issue can be reproduced on that solution?

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Eli
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Eli
Top achievements
Rank 1
Share this question
or