Gantt

Example

Razor
<kendo-gantt>
    <assignments></assignments>
    <columns></columns>
    <current-time-marker />
    <dependency-datasource></dependency-datasource>
    <editable></editable>
    <gantt-datasource></gantt-datasource>
    <gantt-task-template></gantt-task-template>
    <messages />
    <pdf></pdf>
    <range />
    <resources></resources>
    <toolbars></toolbars>
    <tooltip></tooltip>
    <views />
</kendo-gantt>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
as-moduleBooleanSpecifies whether the initialization script of the component will be rendered as a JavaScript module.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
auto-bindBooleanIf set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.
column-menuBooleanIf set to true, the Gantt displays the column menu when the user clicks the Chevron icon in the column headers. The column menu allows the user to show and hide columns, and, if filtering and sorting are enabled, filter and sort the data. By default, the column menu is disabled. Can be set to a JavaScript object which represents the column menu configuration.
column-resize-handle-widthDoubleDefines the width of the column resize handle in pixels. Apply a larger value for easier grasping.
datasource-idStringThe ID/Name of the GanttDataSource tag helper
dateDateTimeIf set to some date and it is between the range start and range end of the selected view, the timeline of the currently selected view is scrolled to start from this date.
dependancy-datasource-idStringThe ID/Name of the GanttDependencyDataSource tag helper
filterableBooleanIf set to true, the user can filter the data source by using the Gantt filter menu. By default, filtering is disabled. Can be set to a JavaScript object which represents the filter menu configuration.
heightDoubleThe height of the widget. Numeric values are treated as pixels.
hour-spanDoubleThe span of an hour slot.
list-widthStringThe width of the task list. Numeric values are treated as pixels.
navigatableBooleanIf set to true the user could navigate the widget using the keyboard. By default keyboard navigation is enabled.
on-addStringThe name of the JavaScript function that will handle the add event. Fired when a new task or a new dependency is about to be added.The event handler function context (available via the this keyword) will be set to the widget instance.
on-cancelStringThe name of the JavaScript function that will handle the cancel event. Fired when the user cancels tasks's cell editing by pressing the 'Esc' key.The event handler function context (available via the this keyword) will be set to the widget instance.
on-changeStringThe name of the JavaScript function that will handle the change event. Fired when the user selects a task in the Gantt.The event handler function context (available via the this keyword) will be set to the widget instance.
on-column-hideStringThe name of the JavaScript function that will handle the columnHide event. Fires when the user hides a column. The event handler function context (available through the this keyword) will be set to the widget instance.
on-column-reorderStringThe name of the JavaScript function that will handle the columnReorder event. Fires when the user changes the order of a column. The event handler function context (available through the this keyword) will be set to the widget instance.
on-column-resizeStringThe name of the JavaScript function that will handle the columnResize event. Fired when the user resizes a column.The event handler function context (available via the this keyword) will be set to the widget instance.
on-column-showStringThe name of the JavaScript function that will handle the columnShow event. Fires when the user shows a column. The event handler function context (available through the this keyword) will be set to the widget instance.
on-data-bindingStringThe name of the JavaScript function that will handle the dataBinding event. Fired before the widget binds to its data source.The event handler function context (available via the this keyword) will be set to the widget instance.
on-data-boundStringThe name of the JavaScript function that will handle the dataBound event. Fired when the widget is bound to data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.
on-editStringThe name of the JavaScript function that will handle the edit event. Fired when the user starts task edit upon double click on a cell.The event handler function context (available via the this keyword) will be set to the widget instance.
on-moveStringThe name of the JavaScript function that will handle the moveStart event. Fired when the user starts to drag a task.The event handler function context (available via the this keyword) will be set to the widget instance.
on-move-endStringThe name of the JavaScript function that will handle the moveEnd event. Fired when the user stops moving a task.The event handler function context (available via the this keyword) will be set to the widget instance.
on-move-startStringThe name of the JavaScript function that will handle the moveStart event. Fired when the user starts to drag a task.The event handler function context (available via the this keyword) will be set to the widget instance.
on-navigateStringThe name of the JavaScript function that will handle the navigate event. Fired when the user changes the selected view of the Gantt.The event handler function context (available via the this keyword) will be set to the widget instance.
on-pdf-exportStringThe name of the JavaScript function that will handle the pdfExport event. Fired when the user clicks the "Export to PDF" toolbar button.
on-removeStringThe name of the JavaScript function that will handle the remove event. Fired when a task or a dependency is about to be removed.The event handler function context (available via the this keyword) will be set to the widget instance.
on-resizeStringThe name of the JavaScript function that will handle the resizeStart event. Fired when the user starts to resize a task.The event handler function context (available via the this keyword) will be set to the widget instance.
on-resize-endStringThe name of the JavaScript function that will handle the resizeEnd event. Fired when the user releases the mouse after resizing a task.The event handler function context (available via the this keyword) will be set to the widget instance.
on-resize-startStringThe name of the JavaScript function that will handle the resizeStart event. Fired when the user starts to resize a task.The event handler function context (available via the this keyword) will be set to the widget instance.
on-saveStringThe name of the JavaScript function that will handle the save event. Fired when a task field is updated upon user interaction.The event handler function context (available via the this keyword) will be set to the widget instance.
on-toggle-planned-tasksStringThe name of the JavaScript function that will handle the togglePlannedTasks event. The event will be raised upon Toolbar PlannedTasks Switch click. As a result, the planned tasks will be either hidden or shown in the Gantt Timeline view. The event is preventable.The event handler function context (available via the this keyword) will be set to the widget instance.
reorderableBooleanIf set to true, the user can reorder the columns in the GanttList section of the widget by dragging their header cells. By default, reordering is disabled.
resizableBooleanIf set to true allows users to resize columns by dragging their header borders. By default resizing is disabled.
row-heightDoubleThe height of the table rows. Numeric values are treated as pixels.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
selectableBooleanIf set to false the user won't be able to select tasks in the Gantt. By default selection is enabled and triggers the change event.
show-planned-tasksBooleanIf set to true, the Gantt Timeline will render both the planned and the actual execution of tasks. In order to display properly, the Planned vs. Actual view would need the plannedStart and plannedEnd date fields for tasks to be set.
show-work-daysBooleanIf set to false, Gantt views will show all days of the week. By default the views display only business days.
show-work-hoursBooleanIf set to false, the day view will show all hours of the day. By default the view displays only business hours.
snapBooleanIf set to true the Gantt will snap tasks to the nearest slot during dragging (resizing or moving). Set it to false to allow free moving and resizing of tasks.
task-templateStringThe template used to render the gantt tasks.The fields which can be used in the template are the task fields
task-template-handlerStringThe template used to render the gantt tasks.The fields which can be used in the template are the task fields This option expects the name of a JavaScript function that will be called to return the template.
task-template-idStringThe template used to render the gantt tasks.The fields which can be used in the template are the task fields This option expects the ID of the script element that contains the template.
task-template-viewIHtmlContentThe template used to render the gantt tasks.The fields which can be used in the template are the task fields This option expects the instance containing the created HTML.
work-day-endDateTimeSets the end of the work day.
work-day-startDateTimeSets the start of the work day.
work-week-endDoubleThe end of working week (index based).
work-week-startDoubleThe start of working week (index based).
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support