Cancel row edit template but retain values

4 posts, 1 answers
  1. Reid
    Reid avatar
    317 posts
    Member since:
    Oct 2008

    Posted 30 May Link to this post

    I want to use the Grid Inline editing that presents an Update and Cancel button but I want to intercept the Update request so that I can call the Update event in the controller when a custom "Save" button is clicked.

    Right now I can tap into the Update event and call grid.cancelRow() and call e.preventDefault() but in doing so when the grid cancels the edit returns the data to it's original state.  I know this is desirable for the normal scenario but in this scenario I want the update button to close the edit template in the row and leave the updated values in place and to leave the record marked as dirty.

    Optimally it would leave the red triangle modified indicators in the modified cells.

     

    Any suggestions would be appreciated.

  2. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 01 Jun Link to this post

    Hello,

    I am not exactly sure what do you want to achieve, but you can use the save event of the grid (fired when the focus is moved outside of the cell being edited and before the cell is closed), here you can get the entered data and save it in hidden field and after that call e.preventDefault().

    Regards,
    Maria Ilieva
    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Reid
    Reid avatar
    317 posts
    Member since:
    Oct 2008

    Posted 01 Jun in reply to Reid Link to this post

    We have since changed tactics and the spec someone so the question is moot.  One thing I have learned with Kendo is that you can rarely wander outside the product design out of the box and get good results.
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 03 Jun Link to this post

    Hello,

    I'm sorry to hear that you find the Kendo controls difficult to customize. We appreciate your feedback and we are open for any suggestions and feature requests.
    Do not hesitate to contact us back in case further assistance is needed.

    Regards,
    Maria Ilieva
    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
UI for ASP.NET MVC is VS 2017 Ready