GanttTagHelper

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.
datasource-idStringThe ID/Name of the GanttDataSource tag helper
dependancy-datasource-idStringThe ID/Name of the GanttDependencyDataSource tag helper
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
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.
as-moduleBoolean
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.
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.
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.
has-client-componentBoolean
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-addStringFired 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-cancelStringFired 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-changeStringFired 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-hideStringFires 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-reorderStringFires 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-resizeStringFired 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-showStringFires 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-bindingStringFired 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-boundStringFired 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-editStringFired 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-moveStringFired 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-endStringFired 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-startStringFired 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-navigateStringFired 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-exportStringFired when the user clicks the "Export to PDF" toolbar button.
on-removeStringFired 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-resizeStringFired 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-endStringFired 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-startStringFired 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-saveStringFired 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 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.
sanitize-idBoolean
script-attributesIDictionary<String,Object>
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
task-template-idStringThe template used to render the gantt tasks.The fields which can be used in the template are the task fields
task-template-viewIHtmlContentThe template used to render the gantt tasks.The fields which can be used in the template are the task fields
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