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
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.