gridview resorting after editing rows

2 posts, 0 answers
  1. yi
    yi avatar
    10 posts
    Member since:
    Oct 2017

    Posted 31 May 2019 Link to this post

    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?

  2. Dimitar Dinev
    Dimitar Dinev avatar
    72 posts

    Posted 05 Jun 2019 Link to this post


    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.

    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.
Back to Top