New to Kendo UI for Vue? Start a free 30-day trial

Initial Edit Form Values

The Scheduler enables you to pre-define values for the different fields when creating and updating tasks. The initial values of the Scheduler's Edit Form can be defined with the modifyInitialFormValues property.

Basic Usage

The below example shows how we can set the initial values of the AllDay checkbox and the Rooms DropDownList available in the editing form.

Example
View Source
Change Theme:

To achieve the above example the following modifyInitialFormValues method is passed to the modifyInitialFormValues property of the Scheduler.

modifyInitialFormValues(dataItem) {
  return dataItem.roomId === undefined
    ? {
        ...dataItem,
        roomId: 1,
        isAllDay: true,
      }
    : dataItem;
},

The above snippet modifies the default isAllDay task field and the roomId resource field.

In this article

Not finding the help you need?