Kendo Grid batch edit

2 posts, 0 answers
  1. Saloni
    Saloni avatar
    3 posts
    Member since:
    Aug 2016

    Posted 15 Aug Link to this post

    I have a grid in batch editing mode. When I click on add new row, it triggers a create event and when I edit a row , it triggers an update event. This is all good and it is as per documentation.

    But My requirement is as such When I click on "add new row" it should trigger an update event instead of create event is that possible ?

    What I am trying to do is , since it is batch save. So even a new row added should be treated like modifying a row. So for example if I do the following

    (1) Add a new row

    (2) modify an existing row

    On clicking save changes button, it should trigger a update action and 2 objects should be sent to server for update . Please let me know if it is possible ?

     

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1793 posts

    Posted 17 Aug Link to this post

    Hello Saloni,

    When you create a new item, that item will not exist in the database, so I am not sure that I understand how you need to update this item, before inserting it. Nevertheless, if you need to have the same logic on insert and on update, you could just handle both events in the same manner, but once again, before inserting an item in the database you will not be able to perform an update on it.

    If you have something different in mind, please provide some additional information on the exact requirement.


    Regards,
    Konstantin Dikov
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  3. Kendo UI is VS 2017 Ready
Back to Top