This question is locked. New answers and comments are not allowed.
Hello,
I am currently working on a application that loads a large amount of records from a database to a RadGridView. The problem I am having is when I load the dataset (usually around 3k, can be up to 8k) the RadGridView takes a very long time to load. It's not a problem with receiving the data in a speedy manner but something else. The dataset gets there fast enough.
My first inclination was to page the grid but, sadly, that would negate the whole purpose of the grid. Is there any way I can speed this up? My methods of loading the grid follow
and the RadGridView
If there is anything I can tweak to speed this up that would be great.
Thanks,
I am currently working on a application that loads a large amount of records from a database to a RadGridView. The problem I am having is when I load the dataset (usually around 3k, can be up to 8k) the RadGridView takes a very long time to load. It's not a problem with receiving the data in a speedy manner but something else. The dataset gets there fast enough.
My first inclination was to page the grid but, sadly, that would negate the whole purpose of the grid. Is there any way I can speed this up? My methods of loading the grid follow
RadGridView.ItemsSource =
null
;
DefaultData_Context.sp_GetData_Results.Clear();
DefaultData_Context.Load(DefaultData_Context.Getsp_Data_ResultQuery(), AfterLoad,
true
);
RadGridView.ItemsSource = DefaultData_Context.sp_GetData_Results;
and the RadGridView
<telerik:RadGridView AutoGenerateColumns=
"False"
Name=
"RadGridView"
Margin=
"20,10,20,30"
Grid.Row=
"1"
Grid.Column=
"1"
ShowColumnFooters=
"True"
EnableColumnVirtualization=
"True"
EnableRowVirtualization=
"True"
>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn x:Name=
"Column1"
DataMemberBinding=
"{Binding Column1}"
Header=
"Column1"
Width=
"Auto"
IsReadOnly=
"True"
>
<telerik:GridViewDataColumn.AggregateFunctions>
<telerik:CountFunction Caption=
"Count: "
/>
</telerik:GridViewDataColumn.AggregateFunctions>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn x:Name=
"Column2"
DataMemberBinding=
"{Binding Column2}"
Header=
"Column2"
Width=
"Auto"
IsReadOnly=
"True"
></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn x:Name=
"Column3"
DataMemberBinding=
"{Binding Column3}"
Header=
"Column3"
Width=
"Auto"
IsReadOnly=
"True"
></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn x:Name=
"Column4"
DataMemberBinding=
"{Binding Column4}"
Header=
"Column4"
Width=
"Auto"
IsReadOnly=
"True"
></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn x:Name=
"Column5"
DataMemberBinding=
"{Binding Column5}"
Header=
"Column5"
Width=
"Auto"
IsReadOnly=
"True"
></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn x:Name=
"Column6"
DataMemberBinding=
"{Binding Column6}"
Header=
"Column6"
Width=
"Auto"
IsReadOnly=
"True"
></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn x:Name=
"Column7"
DataMemberBinding=
"{Binding Column7}"
Header=
"Column7"
Width=
"Auto"
IsReadOnly=
"True"
></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn x:Name=
"Column8"
DataMemberBinding=
"{Binding Column8}"
Header=
"Column8"
Width=
"Auto"
IsReadOnly=
"True"
></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn x:Name=
"Column9"
DataMemberBinding=
"{Binding Column9}"
Header=
"Column9"
Width=
"Auto"
IsReadOnly=
"True"
></telerik:GridViewDataColumn>
<telerik:GridViewDataColumn x:Name=
"Column10"
DataMemberBinding=
"{Binding Column10}"
DataFormatString=
"{}{0:C}"
Header=
"Column10"
Width=
"Auto"
IsReadOnly=
"True"
SortingStateChanged=
"column10_SortingStateChanged"
></telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
If there is anything I can tweak to speed this up that would be great.
Thanks,