This is a migrated thread and some comments may be shown as answers.

Kendo Grid batch edit

1 Answer 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Saloni
Top achievements
Rank 1
Saloni asked on 15 Aug 2016, 05:42 PM

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 ?

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 17 Aug 2016, 07:02 AM
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.
 
Tags
Grid
Asked by
Saloni
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or