New to Telerik UI for ASP.NET MVC? Download free 30-day trial

GanttEventBuilder

Methods

DataBinding(System.String)

Fired before the component binds to its data source.The event handler function context (available via the this keyword) will be set to the component instance.

For more information see DataBinding event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the dataBinding event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.DataBinding("handler"))
            )

DataBound(System.String)

Fired when the component is bound to data from its data source.The event handler function context (available via the this keyword) will be set to the component instance.

For more information see DataBound event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the dataBound event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.DataBound("handler"))
            )

Add(System.String)

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 component instance.

For more information see Add event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the add event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Add("handler"))
            )

Edit(System.String)

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 component instance.

For more information see Edit event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the edit event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Edit("handler"))
            )

Remove(System.String)

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 component instance.

For more information see Remove event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the remove event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Remove("handler"))
            )

Cancel(System.String)

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 component instance.

For more information see Cancel event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the cancel event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Cancel("handler"))
            )

Save(System.String)

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 component instance.

For more information see Save event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the save event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Save("handler"))
            )

Change(System.String)

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 component instance.

For more information see Change event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the change event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Change("handler"))
            )

ColumnHide(System.String)

Fires when the user hides a column. The event handler function context (available through the this keyword) will be set to the component instance.

For more information see ColumnHide event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the columnHide event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.ColumnHide("handler"))
            )

ColumnReorder(System.String)

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 component instance.

For more information see ColumnReorder event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the columnReorder event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.ColumnReorder("handler"))
            )

ColumnResize(System.String)

Fired when the user resizes a column.The event handler function context (available via the this keyword) will be set to the component instance.

For more information see ColumnResize event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the columnResize event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.ColumnResize("handler"))
            )

ColumnShow(System.String)

Fires when the user shows a column. The event handler function context (available through the this keyword) will be set to the component instance.

For more information see ColumnShow event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the columnShow event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.ColumnShow("handler"))
            )

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 component instance.

For more information see Navigate event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the navigate event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Navigate("handler"))
            )

MoveStart(System.String)

Fired when the user starts to drag a task.The event handler function context (available via the this keyword) will be set to the component instance.

For more information see MoveStart event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the moveStart event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.MoveStart("handler"))
            )

Move(System.String)

Fired when the user is moving a task.The event handler function context (available via the this keyword) will be set to the component instance.

For more information see Move event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the move event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Move("handler"))
            )

MoveEnd(System.String)

Fired when the user stops moving a task.The event handler function context (available via the this keyword) will be set to the component instance.

For more information see MoveEnd event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the moveEnd event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.MoveEnd("handler"))
            )

PdfExport(System.String)

Fired when the user clicks the "Export to PDF" toolbar button.

For more information see PdfExport event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the pdfExport event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.PdfExport("handler"))
            )

ResizeStart(System.String)

Fired when the user starts to resize a task.The event handler function context (available via the this keyword) will be set to the component instance.

For more information see ResizeStart event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the resizeStart event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.ResizeStart("handler"))
            )

Resize(System.String)

Fired when the user is resizing a task.The event handler function context (available via the this keyword) will be set to the component instance.

For more information see Resize event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the resize event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Resize("handler"))
            )

ResizeEnd(System.String)

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 component instance.

For more information see ResizeEnd event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the resizeEnd event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.ResizeEnd("handler"))
            )

TogglePlannedTasks(System.String)

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 component instance.

For more information see TogglePlannedTasks event.

Parameters

handler - System.String

The name of the JavaScript function that will handle the togglePlannedTasks event.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.TogglePlannedTasks("handler"))
            )

In this article
Not finding the help you need?