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

RadGridView bad overall performance

1 Answer 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Murat
Top achievements
Rank 1
Murat asked on 22 Aug 2013, 11:37 PM
Hi,

I am developing a application for a customer using telerik comoponents - so we tought we can use telerik GridView at the beginning it was ok but after i applied the windows8 theme the performnace is dead.

Here are a few hints which kills the performance:
* When the grid gets the FrameworkElement.Unloaded event it consumes too much time accessing hashCode
Please check the function "private void OnUnloaded(object sender, RoutedEventArgs e)" inside GridViewDataControl.cs line 202
The problem is that we have a nested loop where we iterate through a IDictionary<object, IEnumerable<IDisposable>> - please add the possibility to disable this behaviour (I see its only enabled when WPF is used) - i am good if the GC takes care of.

* Inside ClearIctdSubscriptions (GridViewDataControl) you call containskey on a map and than access it with a indexer this means we search twice - why do you guys do not use TryGetValue there?
And again stop calling dispose there on each element which consumes to much time if we want to switch fast between views

How to reproduce it
1) Telerik.Windows.Controls.StyleManager.ApplicationTheme = new Telerik.Windows.Controls.Windows8Theme();
2) Create a custom object and populate the grid with 10 items (yes thats enough to see the lag)


1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 27 Aug 2013, 01:42 PM
Hi,

We are aware about some performance problems with these code snippets. However this code is reached only if the item does not implement INotifyPropertyChanged interface (very critical and fundamental interface for xaml platforms), so I believe that in your real case there will be no problem to implement INotifyPropertyChanged interface. These code snippets supports RadGridView feature to reflect to the update of underlying properties event when INotifyPropertyChanged interface is not implemented via PropertyDescriptorChange, which unfortunately is a way too slow.

Could you please add INotifyPropertyChanged interface implementation to your business object and let me know about the result?

Regards,
Nedyalko Nikolov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Murat
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or