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

SchedulerEventBuilder

Methods

Add(System.String)

Fired when a new event 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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.Add("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

Add(System.Func)

Fired when a new event 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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.Add(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Cancel(System.String)

Fired when the user cancels editing by clicking the "cancel" button.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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.Cancel("cancel"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

Cancel(System.Func)

Fired when the user cancels editing by clicking the "cancel" button.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


             @(Html.Kendo().Scheduler<Task>()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.Cancel(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Change(System.String)

Fired when the user selects a cell or event in the scheduler.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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.Change("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

Change(System.Func)

Fired when the user selects a cell or event in the scheduler.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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.Change(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.DataBinding("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.DataBinding(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.DataBound("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.DataBound(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Edit(System.String)

Fired when the user opens a scheduler event in edit mode by or creates a new event.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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.Edit("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

Edit(System.Func)

Fired when the user opens a scheduler event in edit mode by or creates a new event.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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.Edit(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

MoveStart(System.String)

Fired when the user starts to drag an event.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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.MoveStart("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

MoveStart(System.Func)

Fired when the user starts to drag an event.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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.MoveStart(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Move(System.String)

Fired when the user is moving an event.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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.Move("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

Move(System.Func)

Fired when the user is moving an event.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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.Move(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

MoveEnd(System.String)

Fired when the user stops moving an event.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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.MoveEnd("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

MoveEnd(System.Func)

Fired when the user stops moving an event.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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.MoveEnd(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Fired when the user changes the selected date, selected Scheduler view or switches between show full day and show business hours.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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.Navigate("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

Fired when the user changes the selected date, selected Scheduler view or switches between show full day and show business hours.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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.Navigate(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.PdfExport("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.PdfExport(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Remove(System.String)

Fired when the user performs "destroy" action.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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.Remove("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

Remove(System.Func)

Fired when the user performs "destroy" action.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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.Remove(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

ResizeStart(System.String)

Fired when the user starts to resize an event.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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.ResizeStart("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

ResizeStart(System.Func)

Fired when the user starts to resize an event.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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.ResizeStart(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Resize(System.String)

Fired when the user is resizing an event.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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.Resize("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

Resize(System.Func)

Fired when the user is resizing an event.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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.Resize(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

ResizeEnd(System.String)

Fired when the user releases the mouse after resizing an event.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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.ResizeEnd("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

ResizeEnd(System.Func)

Fired when the user releases the mouse after resizing an event.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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.ResizeEnd(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Save(System.String)

Fired when the user saves a scheduler event by clicking the "save" button.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


             @(Html.Kendo().Scheduler<Task>()
                        .Name("Scheduler")
                        .Events(events => events.Save("handlerName"))
                        .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
            )

Save(System.Func)

Fired when the user saves a scheduler event by clicking the "save" button.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


             @(Html.Kendo().Scheduler()
                       .Name("Scheduler")
                       .DataSource(d => d
                            .Model(m => m.Id(f => f.TaskID))
                                .Read("Read", "Scheduler")
                                .Create("Create", "Scheduler")
                                .Destroy("Destroy", "Scheduler")
                                .Update("Update", "Scheduler")
                        )  
                       .Events(events => events.Save(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

In this article
Not finding the help you need?