New to Kendo UI for VueStart 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.

Change Theme
Theme
Loading ...

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

jsx
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
Basic UsageSuggested Links
Not finding the help you need?
Contact Support