<
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
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.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
<
UserControl
x:Class
=
"WellLab.UI.LogViewer"
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
>
I would suggest you to try setting ScrollMode=Deferred for the GridView.
Please let me know if this helps.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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.
You could check our online examples. The same examples are available within WPF Demos that you should have installed locally.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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??
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.