You can use the Grid edit event to add a new generatedId value to the new Grid model .
This is the explanation from the documentation :
Edit
when a user edits or creates a data item.
- e.container jQuery, the jQuery object of the edit container element that wraps the editing interface.
- e.model kendo.data.Model, the data item to be edited. Use its isNew method to check if the data item is new (created) or not (edited).
- e.sender kendo.ui.Grid, the widget instance that triggered the event.
I believe your click has something like this
and then in the edit event
edit: function(e) { var model = e.model;
Note The editable: true property should be specified in the field of your schema model, which will allow us to change the value of the model field using the set method. Also, if your field schema requires verification, you need to remove it.
model: { id: "ProductID", fields: { ProductID: { editable: true, nullable: true }, } }
Example
source share