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

Slow scrolling with radgridview

7 Answers 1155 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 24 Jun 2012, 11:46 PM
I just started with a trial of your controls. I am running a WPF datagrid side-by-side with your radgridview to compare operation. The radgridview scrolling is too slow and jerky with my small test data set (8 columns, 2500 rows of doubles). My XAML is simple

<telerik:RadGridView Name="radGridView1" HorizontalAlignment="Left" />

 I bind to a datatable as follows:

radGridView1.ItemsSource = logTable.DefaultView;

I notice that your radgridview has some features I probably don't need for this application, such as grouping by column, and some filtering in the columns. Can I turn these off and get faster scrolling?


7 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 25 Jun 2012, 06:53 AM
Hello,

In order to increase the performance of the GridView I would recommend you to not place the RadGridView in controls/panels which will measure it with infinity. Such panels are the ScrollViewer, the StackPanel and Grid with Row.Height=Auto. More on how to increase the performance is described in this help article

You can as well disable some features using their properties (for example CanUserInsertRows). If you load all of the data at once, this uses more memory as well.

I hope this helps you to improve the scrolling.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Stephen
Top achievements
Rank 1
answered on 25 Jun 2012, 02:28 PM
My full XAML is below. I am using a DockPanel. The DockPanel gets put into a tab control, and the tabcontrol is in a grid. I have a Datagrid and RadGridView using the same data for comparison. The Datagrid scrolls quickly and smoothly. The RadGridView is way too slow and does not scroll smoothly. I have tried turning off some features in the properties, but nothing has mad a difference so far.

<UserControl x:Class="WellLab.UI.LogViewer"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Grid>
        <DockPanel Height="Auto" HorizontalAlignment="Stretch" Margin="0" Name="dockPanel1" VerticalAlignment="Stretch" Width="Auto">
            <ToolBarTray Height="26" Name="toolBarTray1" Width="Auto" />
            <DataGrid AutoGenerateColumns="True" Height="Auto" Name="logDataGrid" Width="Auto" ItemsSource="{Binding Path=.}"  HorizontalAlignment="Left" LoadingRow="logDataGrid_LoadingRow">
                <DataGrid.RowHeaderTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type DataGridRow}}, Path=Header}"></TextBlock>
                    </DataTemplate>
                </DataGrid.RowHeaderTemplate>
            </DataGrid>
            <telerik:RadGridView Name="radGridView1" HorizontalAlignment="Left" CanUserSortColumns="False" />
        </DockPanel>
    </Grid>
</UserControl>
0
Dimitrina
Telerik team
answered on 26 Jun 2012, 09:26 AM
Hello,

 I would suggest you to try setting ScrollMode=Deferred for the GridView.

 Please let me know if this helps.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Stephen
Top achievements
Rank 1
answered on 26 Jun 2012, 11:22 PM
Thanks. That solves the problem.

Do you have any example projects that deal with large amounts of numeric data in a gridview? Seeing an example it might help me to understand how best to use this control.
0
Dimitrina
Telerik team
answered on 27 Jun 2012, 05:29 AM
Hi,

 You could check our online examples. The same examples are available within WPF Demos that you should have installed locally.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Barbara
Top achievements
Rank 1
answered on 08 May 2015, 02:09 PM

Hi,

I tried using the 'Deferred' option to scroll which made the scroll-bar more smooth but then when I stop it takes a second to actually get that row in view. Is there any solution to that??  

0
Dimitrina
Telerik team
answered on 11 May 2015, 10:14 AM
Hi,

You can try setting fixed width for the columns.
As it turns out this would be the expected behavior as RadGridView needs to calculate and realize the visual elements at the exact position the user have scrolled to. 

Regards,
Dimitrina
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

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