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

RadGridView CPU usage on mouseover

2 Answers 148 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Evgeny
Top achievements
Rank 1
Evgeny asked on 06 Nov 2012, 03:19 PM
Hi, I'm using Telerik RadControls for WPF v.2012.3.1017.45 and use RadGridView in the following configuration:
<telerik:RadGridView Grid.Row="1" Grid.Column="0" x:Name="listView"
                     EnableRowVirtualization="True"
                     MouseDoubleClick="ListViewMouseDoubleClick"
                     SelectionChanged="ListViewSelectionChanged"                       
                     AutoGenerateColumns="False"
                     AlternateRowBackground="#3d3D3d3d"
                     Background="#99333333"
                     SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                     ItemsSource="{Binding VirtualizedItems}"
                     IsSynchronizedWithCurrentItem="True"
                     DataLoadMode="Asynchronous"
                     RowDetailsVisibilityMode="Collapsed"
                     ShowGroupPanel="False"
                     IsReadOnly="True"
                     CanUserSortColumns="True"
                     IsFilteringAllowed="False"
                     CanUserDeleteRows="False"
                     CanUserInsertRows="False"
                     Width="870" />

(columns are ommited, they are just databound to simple properties of one object).
Even simple mouse over causes serious peromance issues (up to 30% CPU usage from gridview application only) and bad user experience. When I moving over any other part of application - CPU usage is around zero. Any idea how to fix this? 

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 06 Nov 2012, 04:12 PM
Hello,

I have reviewed the definition of the RadGridView you have. Please remove the DataLoadMode="Asynchronous" setting. Generally using alternation will slow down the performance as well. You could check our online documentation for further hints on how to improve the performance.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Evgeny
Top achievements
Rank 1
answered on 06 Nov 2012, 05:19 PM
Thank you for quick response. Unfortunately, your advice didn't help to improve mouseover perfomance. However, I found what causes such serious perfomance hit - it's a DropShadowEffect on the border I put RadGridView in. After removing this effect grid view becomes much more responsive and do not consume CPU resourses. Can't believe simple shadow has such effect on perfomance, but that's it. Maybe you should add this knowledge to the online documentation section you provided above.
Tags
GridView
Asked by
Evgeny
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Evgeny
Top achievements
Rank 1
Share this question
or