editable.template String|Function

The template which renders the editor.

The template should contain elements whose name HTML attributes are set as the editable fields. This is how the Gantt will know which field to update. The other option is to use MVVM bindings in order to bind HTML elements to data item fields.

Use the role data attribute to initialize Kendo UI widgets in the template. Check data attribute initialization for more info.

Example - customize the popup editor

<script id="editor" type="text/x-kendo-template">
   <h3>Edit meeting</h3>
       <label>Title: <input name="title" /></label>
       <label>Start: <input data-role="datetimepicker" name="start" /></label>
       <label>End: <input data-role="datetimepicker" name="end" /></label>
<div id="gantt"></div>
  dataSource: [
      id: 1,
      orderId: 0,
      parentId: null,
      title: "Task1",
      start: new Date("2014/6/17 9:00"),
      end: new Date("2014/6/17 11:00")
  editable: {
    template: $("#editor").html()
In this article
Not finding the help you need? Improve this article