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

GridView Sorting Performance

3 Answers 204 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Abhinav
Top achievements
Rank 1
Abhinav asked on 24 May 2017, 07:03 PM

Hi Telerik,

 

We are using a RadGridView bound to an ObservableCollection wrapped in a CollectionViewSource. Sorting a large number of rows seems to be slower than creating a new collection, sorting this collection using LINQ, then rebinding the RadGridView to the collection. We've attempted to use the QueryableCollectionView as the underlying collection source for the RadGridView and the performance is not improved over the CollectionViewSource when sorting (i.e. clicking on a column in the RadGridView to sort asc/desc/none).

Could you please offer suggestions to help speed up sorting performance? We have followed all suggestions in the "Degraded Performance" article for the UI for WPF suite. Please note that we are using proxy types for entities and prefer not to implement or derive from base classes.

For example, is there a WPF version for this article?:

http://www.telerik.com/support/kb/winforms/details/use-custom-comparer-to-speed-up-the-sorting-in-radgridview

 

Kind regards

3 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 29 May 2017, 11:59 AM
Hello Abhinav,

Thank you for the referred link.

An equivalent of this approach for the WPF RadGridView is demonstrated in the Custom Sorting help article. Basically, by implementing custom sorting you will avoid the logic for fetching the given property type that is internally executed. Can you please check it out?

You can also take a look at the Custom Sorting and Custom Sorting with IComparable WPF Demos.

Hopefully, this helps. In case further assistance is needed, feel free to update me.

Have a great week!

Best Regards,
Stefan X1
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Abhinav
Top achievements
Rank 1
answered on 29 May 2017, 05:30 PM

Thanks very much, Stefan.

We will look into possibly implementing the custom sorting implementation with a CollectionView, as needed.

 

Kind regards.

0
Stefan
Telerik team
answered on 01 Jun 2017, 11:09 AM
Hi Abhinav,

Please, take your time to review the provided resources. Do not hesitate to approach me should you need further assistance.

All the best,
Stefan X1
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Abhinav
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Abhinav
Top achievements
Rank 1
Share this question
or