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

gridview resorting after editing rows

1 Answer 121 Views
GridView
This is a migrated thread and some comments may be shown as answers.
yi
Top achievements
Rank 1
yi asked on 31 May 2019, 06:00 PM

Hi guys,

I've got a telerik rad grid view data bound to a CollectionViewSource with group descriptiors enabled. But it seems that when I edit a cell and then commit it, the row gets shifted to the bottom of the current grouping.

Is there any trick to stop this re-ordering?

1 Answer, 1 is accepted

Sort by
0
Dimitar Dinev
Telerik team
answered on 05 Jun 2019, 02:54 PM
Hello,

I was able to reproduce the described behavior when using the GetDefaultView method of the CollectionViewSource. I investigated the scenario and here is what happens:

Basically, the GetDefaultView method of CollectionViewSource returns an ListCollectionView and its implementation of CommitEdit removes the edited item and adds it again. That is why the edited item is moved to the bottom of the group. I have logged an item for this behavior on your behalf in our feedback portal: GridView: Editing a grouped RadGridView bound to a ListCollectionView moves the edited item to the bottom of the group. You can follow the feedback item in order to get notified for any developments. I have also updated your telerik points as a small gesture of gratitude. 

Currently as a workaround, you can use the QueryableCollectionView instead of the CollectionViewSource.

I hope you find this information helpful.

Regards,
Dimitar Dinev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
yi
Top achievements
Rank 1
Answers by
Dimitar Dinev
Telerik team
Share this question
or