Completed
Last Updated: 24 Jan 2020 11:22 by ADMIN
Imported User
Created on: 28 Oct 2018 13:01
Category: Grid
Type: Feature Request
3
kendo grid addRow should support new item asd parameter
when putting grid into new item creation state it should be possible to put new item with some predefined fields.

Current it is realy difficult to achieve that:

using datasource and insert do not contain isNew on model, also put it on top of grid page is difficult, not possible

using model.set. on edit event causing fireing save event when it should be fired only when item is realy saved.
1 comment
ADMIN
Alex Hajigeorgieva
Posted on: 24 Jan 2020 11:22

Hi,

Use the data source schema model fields defaultValue and new models will be automatically assigned those values upon creation:

https://docs.telerik.com/kendo-ui/controls/data-management/grid/editing/editing#defining-fields-through-schema

https://docs.telerik.com/kendo-ui/api/javascript/data/model/methods/define

Kind Regards,
Alex Hajigeorgieva
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.