GanttEventBuilder

Methods

DataBinding(System.String)

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.

For more information see DataBinding event.

Parameters

handler - System.String

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

Example

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

DataBinding(System.Func)

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.

For more information see DataBinding event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.DataBinding(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

DataBound(System.String)

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.

For more information see DataBound event.

Parameters

handler - System.String

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

Example

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

DataBound(System.Func)

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.

For more information see DataBound event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.DataBound(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see Add event.

Parameters

handler - System.String

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

Example

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

Add(System.Func)

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.

For more information see Add event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Add(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see Edit event.

Parameters

handler - System.String

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

Example

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

Edit(System.Func)

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.

For more information see Edit event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Edit(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see Remove event.

Parameters

handler - System.String

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

Example

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

Remove(System.Func)

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.

For more information see Remove event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Remove(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see Cancel event.

Parameters

handler - System.String

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

Example

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

Cancel(System.Func)

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.

For more information see Cancel event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Cancel(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see Save event.

Parameters

handler - System.String

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

Example

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

Save(System.Func)

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.

For more information see Save event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Save(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see Change event.

Parameters

handler - System.String

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

Example

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

Change(System.Func)

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.

For more information see Change event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Change(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see ColumnHide event.

Parameters

handler - System.String

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

Example

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

ColumnHide(System.Func)

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

For more information see ColumnHide event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.ColumnHide(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see ColumnReorder event.

Parameters

handler - System.String

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

Example

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

ColumnReorder(System.Func)

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.

For more information see ColumnReorder event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.ColumnReorder(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see ColumnResize event.

Parameters

handler - System.String

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

Example

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

ColumnResize(System.Func)

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

For more information see ColumnResize event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.ColumnResize(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see ColumnShow event.

Parameters

handler - System.String

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

Example

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

ColumnShow(System.Func)

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

For more information see ColumnShow event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.ColumnShow(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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.

For more information see Navigate event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Navigate("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 widget instance.

For more information see Navigate event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Navigate(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see MoveStart event.

Parameters

handler - System.String

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

Example

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

MoveStart(System.Func)

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.

For more information see MoveStart event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.MoveStart(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see Move event.

Parameters

handler - System.String

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

Example

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

Move(System.Func)

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

For more information see Move event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Move(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see MoveEnd event.

Parameters

handler - System.String

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

Example

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

MoveEnd(System.Func)

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.

For more information see MoveEnd event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.MoveEnd(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

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

PdfExport(System.Func)

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

For more information see PdfExport event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.PdfExport(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see ResizeStart event.

Parameters

handler - System.String

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

Example

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

ResizeStart(System.Func)

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.

For more information see ResizeStart event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.ResizeStart(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see Resize event.

Parameters

handler - System.String

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

Example

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

Resize(System.Func)

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

For more information see Resize event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.Resize(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see ResizeEnd event.

Parameters

handler - System.String

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

Example

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

ResizeEnd(System.Func)

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.

For more information see ResizeEnd event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.ResizeEnd(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )
             

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

For more information see TogglePlannedTasks event.

Parameters

handler - System.String

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

Example

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

TogglePlannedTasks(System.Func)

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.

For more information see TogglePlannedTasks event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                .Events(events => events.TogglePlannedTasks(
                     @<text>
                      function(e) {
                          // javascript logic
                      }
                      </text>
            ))
            )