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

Horizonal Scrollbar in gridview... move slowly

4 Answers 36 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 11 Mar 2010, 10:02 AM
Hello,
I've got a strange problem with the horizontal scrollbar in a gridview, consider a series of columns that bring the horizontal scrollview to appear, If I click with the mouse at the end of the scrollview I've the grid columns that move to the end but the scrollview moves really slowly to the versus of my mouse pointer.... it's as if the scrollview has a different width respect to the grid...
Here's my XAML code : (but this happens also with Fixed column,and not auto generated ones)

<IF:LayoutBase x:Class="IFWebLight.Utility.Dettagli.SenzaParametri" 
      xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"   
    xmlns:grid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
    xmlns:ms="clr-namespace:System.Windows.Controls;assembly=System.Windows" 
    xmlns:data="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data" 
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
    xmlns:IF="clr-namespace:IFWebLight.Utility.Dettagli"
    <Grid x:Name="LayoutRoot" Loaded="LayoutRoot_Loaded"
        <Grid.RowDefinitions> 
            <RowDefinition Height="25"></RowDefinition> 
            <RowDefinition ></RowDefinition
        </Grid.RowDefinitions> 
 
        <StackPanel Grid.Row="0" Orientation="Horizontal"
            <Button x:Name="btnCarica" Margin="5,0,0,0" Content="Carica" Click="Carica_Click"></Button> 
            <Button x:Name="btnExport" Margin="5,0,0,0" Content="Export Xls" Click="btnExport_Click" IsEnabled="False" ></Button
        </StackPanel> 
        <Grid Grid.Row="1"
            <telerikGridView:RadGridView x:Name="gvContent" AutoGenerateColumns="False" DataLoadMode="Asynchronous" ColumnsWidthMode="Auto"
 
            </telerikGridView:RadGridView> 
        </Grid> 
        <telerik:RadProgressBar Grid.Row="1" x:Name="pb" Width="260" Height="30" Minimum="0" Maximum="1000" Margin="0,0,0,30" IsIndeterminate="True" Visibility="Collapsed" /> 
    </Grid> 
</IF:LayoutBase> 

Anyone is expecting this problem? (I've tried with last official Q2009 and the new born Q2010)
Thanks

4 Answers, 1 is accepted

Sort by
0
Eamon Foy
Top achievements
Rank 1
answered on 11 Mar 2010, 03:49 PM
Hi Paolo,

Did you try turning on ColumnVirtualization?

Eamon.
0
Michele
Top achievements
Rank 2
answered on 11 Mar 2010, 04:03 PM
I tought it was on by default....
I'll check and let you know..
Thanks
0
Eamon Foy
Top achievements
Rank 1
answered on 12 Mar 2010, 11:58 AM
Actually just looking at my code here, when I had that problem I had to set the columnvirtualization to false to rectify it. This is leading to performance issues now for me though.
0
Nedyalko Nikolov
Telerik team
answered on 16 Mar 2010, 06:42 PM
Hi Paolo,

Please try to set height to the second grid row definition to "*". I believe this will fix the problem. In case with "auto" height RadGridView actually turns off the vertical UI virtualization which according to me causes the problem.

<Grid x:Name="LayoutRoot" Loaded="LayoutRoot_Loaded">
        <Grid.RowDefinitions>
            <RowDefinition Height="25"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
  
        <StackPanel Grid.Row="0" Orientation="Horizontal">
            <Button x:Name="btnCarica" Margin="5,0,0,0" Content="Carica" Click="Carica_Click"></Button>
            <Button x:Name="btnExport" Margin="5,0,0,0" Content="Export Xls" Click="btnExport_Click" IsEnabled="False" ></Button>
        </StackPanel>

Let me know if this doesn't help.

Regards,
Nedyalko Nikolov
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.
Tags
GridView
Asked by
Michele
Top achievements
Rank 2
Answers by
Eamon Foy
Top achievements
Rank 1
Michele
Top achievements
Rank 2
Nedyalko Nikolov
Telerik team
Share this question
or