I am in the process of evaluating Telerik Gridview. Our data is organized in groups. I created a RadGridView that uses 1 column as a GroupDescriptor. I noticed that the scrolling through each grouped table is VERY slow as each group is expanded (AutoExpandGroups="True"). The performance is better if I remove GroupDescriptor altogether. Here are what I set in my RadGridView:
<
code
>CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False" IsReadOnly="True" ScrollMode="Deferred" telerik:StyleManager.Theme="Metro" FontSize="11" ShowGroupPanel="False" RowHeight="18" Grid.Row="1" Width="1320" MaxWidth="1320" MinHeight="800" MaxHeight="1000"</
code
>
Is there anything I can do to increase the performance. The table size is around 14000 cells.
I saw this earlier post and it was stated that the issue was resolved. I can't download the code as I am not yet a licensed user.
http://www.telerik.com/support/pits.aspx#/public/winforms/4570
Please advise. Thanks.
20 Answers, 1 is accepted
Is the question related to RadGridView for WPF or to RadGridView for WinForms? The mentioned PITS item is for RadGridView for WinForms.
Greetings,
Yordanka
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
The issue you've posted is related to the Winforms grid.
All the best,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Can you send us a sample project close to your scenario? We will check what is going on and will provide with further assistance.
In order to attach a project you need to open a separate support ticket.
Kind regards,
Yordanka
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I can't see where I can submit a support team as I am not yet a licensed user (we are evaluating).
Please advise.
1 thing I tried today is that I loaded the data from our database into telerik demo project ->
Telerik.Windows.Examples.GridView.DataSources.MyModel
I see that the performance is slowing when I added grouping column.
My code is basically modeling after the demo project. It loaded the data from database into DataTable and load it into RadGridview.
Our data is basically 197 columns x 115 rows in size.
After I made the call -> GridView.ItemSource = <my data table>, the code was executed but UI does not show the data immediately. There's a lag. I think my question is how should I structure my code such that the speed at which Gridview UI rendering can improve?
More info on my Gridview setup:
1) EnableColumnVirtualization and EnableRowVirtualization are set to TRUE as by default
2) DataLoadMode="Asynchronous"
3) After the data is loaded, I added data filtering in my C# code
4) The column has fixed size and not resizable and the data type is not complex. I only added DayaFormatString for formatting purpose
Gridview in XAML:
<
telerik:RadGridView
Name
=
"MyTable"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
AutoExpandGroups
=
"True"
DataLoadMode
=
"Asynchronous"
CanUserFreezeColumns
=
"False"
RowIndicatorVisibility
=
"Collapsed"
AutoGenerateColumns
=
"False"
IsReadOnly
=
"True"
ScrollMode
=
"Deferred"
EnableColumnVirtualization
=
"True"
EnableRowVirtualization
=
"True"
telerik:StyleManager.Theme
=
"Metro"
FontSize
=
"11"
ShowGroupPanel
=
"False"
RowHeight
=
"18"
Width
=
"1500"
MaxWidth
=
"1600"
Height
=
"860"
MaxHeight
=
"1000"
CanUserResizeColumns
=
"False"
CanUserReorderColumns
=
"False"
CanUserInsertRows
=
"False"
CanUserDeleteRows
=
"False"
CanUserSortColumns
=
"False"
>
Please send us support ticket with sample project where we can replicate this slowness. Once we have more info we will let you know what's going on in your case!
Greetings,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I've submitted - http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=546810
Thank you!
Thank you for the project.
Yordanka
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Is there anything else i can tune to make it faster?
Thanks.
On your latest observation - in such setup it is possible for RadGridView to be measured with height of infinity. This will prevent it form using virtualization thus the reduced performance. This can be easily diagnosed by testing RadGridView with explicitly limited height.
Regards,
Pavel Pavlov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=546810
I did set the Height and Width for the Gridview:
<
telerik:RadGridView
Name
=
"MyGridView"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
DataLoadMode
=
"Asynchronous"
Grid.Row
=
"1"
Grid.Column
=
"0"
CanUserFreezeColumns
=
"False"
RowIndicatorVisibility
=
"Collapsed"
AutoGenerateColumns
=
"False"
IsReadOnly
=
"True"
ScrollMode
=
"Deferred"
ShowGroupPanel
=
"False"
Width
=
"1500"
MaxWidth
=
"1600"
Height
=
"860"
MaxHeight
=
"1000"
BorderBrush
=
"#FF2E398A"
CanUserResizeColumns
=
"False"
CanUserReorderColumns
=
"False"
CanUserInsertRows
=
"False"
CanUserDeleteRows
=
"False"
CanUserSortColumns
=
"False"
ItemsSource
=
"{Binding Data, Source={StaticResource model}}"
>
Do I need to set Height and Width for RadTabControl? I did but it's not making any difference:
<
telerik:RadTabControl
Name
=
"MainTabContainer"
Height
=
"1600"
Width
=
"1400"
>
Please advise. Thanks!
You can try setting IsContentPreserved property of RadTabControl to True. In this way, the content will be preserved and next time the tab item is selected the rendering will be much faster.
As to the problem with expand groups - I was not able to reproduce it using the project attached in the other thread. Can you provide more details or steps to reproduce it?
All the best,
Yordanka
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Setting "IsContentPreserved" property seems to speed up a bit but it's not huge though.
I've just noticed that the grid is defined in a row and a column with dynamic Height and Width:
<
Grid
Name
=
"PoolListGrid"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Left"
MaxWidth
=
"1600"
Width
=
"1500"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"45"
/>
<
RowDefinition
Height
=
"120*"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"200*"
/>
</
Grid.ColumnDefinitions
>
<telerik:RadGridView Name="MyGridView" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="1" Grid.Column="0" ...
Setting Height and Width to Star or fixed size will improve the performance.
Let me know if you have additional questions.
Kind regards,
Yordanka
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
That helps. Thanks. However we still don't see the same performance that we would see in DevExpress.
What other things can I tune & adjust? We appreciate your help!
Thanks again.