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

Suspend Grid Sorting

1 Answer 50 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 24 Mar 2014, 06:13 PM
I have a grid that is sorted on a column. I'd like to suspend sorting on the grid so that a user can make changes without the grid resorting after every edit, and then resume sorting after the user is done so that the grid sorts correctly based on the updated data. Is this possible? I've tried calling SortDescriptors.SuspendNotifications(), but it seems to have no effect - if I update a cell value after calling this method, the grid will still resort the row after the edit is completed.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 25 Mar 2014, 09:13 AM

Hello,

Actually the SuspendNotifications method only suspends the CollectionChanged events. As you have already added the SortDescriptor to the collection, such an event will not be raised and the existing SortDescriptor will not be removed. It will be reevaluated every time a row is edited and the edit the committed. Unfortunately this cannot be suspended. 

Regards,

Didie
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
GridView
Asked by
Robert
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or