The edit state of a row changed after delete another row above it.

2 posts, 1 answers
  1. Rui
    Rui avatar
    14 posts
    Member since:
    Sep 2015

    Posted 23 Nov 2015 Link to this post


         Now I am looking into this demo

         First, I edit the second row in the gird, then delete the first row. I found after the first row was deleted. The original second row(now it is the first row after deleting) lost "in edit" state. And the original third row(now it changed to the second row) got the "in edit" state.

         Is it a software defect? And is there any solution now?\


    Zhang Rui

  2. Answer
    Eyup avatar
    3819 posts

    Posted 25 Nov 2015 Link to this post

    Hi Zhang,

    This is due to the fact that the grid uses the index of the row when keeping it in Edit mode. When a prior item is deleted, naturally the indexes are altered by 1 and the next row gets opened in Edit mode. This is not Telerik specific behavior, as you will also encounter it with regular ASP.NET data visualization controls. To resolve it, you need to include some conditional custom logic. For example, you can clear the Edit indexes after deleting a record. Or you can preserve the Unique ID of the record depending on your database specifics and re-open it Edit mode manually.

    I hope the clarification was helpful.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top