Cancelling inline edit changes value of row to the first item in grid

3 posts, 0 answers
  1. Jaesoon
    Jaesoon avatar
    51 posts
    Member since:
    Oct 2012

    Posted 18 Dec 2015 Link to this post

    I have a grid which has inline editing with one field visible (a date field).

     

    For some reason when I press edit on a row and then cancel (on any row apart from the top row) the whole row turns into the value of the top item.

    No data is saved to the database as refreshing the grid shows the correct values again.

     

    I've put in an event handler to see what's being happening when cancel is pressed and it seems by the time the cancel event is hit, the object that gets returned is the first item of the grid.

     

    How can I stop this behaviour from happening?

  2. Jaesoon
    Jaesoon avatar
    51 posts
    Member since:
    Oct 2012

    Posted 18 Dec 2015 in reply to Jaesoon Link to this post

    I've figured out what the problem was,

     

    I was binding to the wrong model id in the datasource and changing that to the correct value has fixed my problem.

  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2159 posts

    Posted 22 Dec 2015 Link to this post

    Hello Jaesoon,

    Thanks for the update. We are glad the issue is resolved.

    Have a happy holidays!

    Regards,
    Dimiter Madjarov
    Telerik
    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