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

WindowEventBuilder

Methods

Activate(System.String)

Triggered when a Window has finished its opening animation.

For more information see Activate event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Activate("onActivate"))
            )

Activate(System.Func)

Triggered when a Window has finished its opening animation.

For more information see Activate event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Activate(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Close(System.String)

Triggered when a Window is closed either by the user or through the close() method.

For more information see Close event.

Parameters

handler - System.String

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

Close(System.Func)

Triggered when a Window is closed either by the user or through the close() method.

For more information see Close event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Deactivate(System.String)

Triggered when a Window has finished its closing animation.

For more information see Deactivate event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Deactivate("onDeactivate"))
            )

Deactivate(System.Func)

Triggered when a Window has finished its closing animation.

For more information see Deactivate event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Deactivate(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

DragEnd(System.String)

Triggered when a Window has been moved by the user.

For more information see DragEnd event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.DragEnd("onDragEnd"))
            )

DragEnd(System.Func)

Triggered when a Window has been moved by the user.

For more information see DragEnd event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.DragEnd(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

DragStart(System.String)

Triggered when the user starts to move the Window.

For more information see DragStart event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.DragStart("onDragStart"))
            )

DragStart(System.Func)

Triggered when the user starts to move the Window.

For more information see DragStart event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.DragStart(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Error(System.String)

Triggered when an Ajax request for content fails.

For more information see Error event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Error("onError"))
            )

Error(System.Func)

Triggered when an Ajax request for content fails.

For more information see Error event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Error(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Maximize(System.String)

Triggered when the user maximizes the Window. Introduced in 2016.Q1.SP1.

For more information see Maximize event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Maximize("onMaximize"))
            )

Maximize(System.Func)

Triggered when the user maximizes the Window. Introduced in 2016.Q1.SP1.

For more information see Maximize event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Maximize(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Minimize(System.String)

Triggered when the user minimizes the Window. Introduced in 2016.Q1.SP1.

For more information see Minimize event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Minimize("onMinimize"))
            )

Minimize(System.Func)

Triggered when the user minimizes the Window. Introduced in 2016.Q1.SP1.

For more information see Minimize event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Minimize(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Open(System.String)

Triggered when a Window is opened, that is, when the open() method is called.

For more information see Open event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Open("onOpen"))
            )

Open(System.Func)

Triggered when a Window is opened, that is, when the open() method is called.

For more information see Open event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Open(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Refresh(System.String)

Triggered when the content of a Window has finished loading via Ajax, when the Window iframe has finished loading, or when the Refresh button has been clicked on a Window with static content.

For more information see Refresh event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Refresh("onRefresh"))
            )

Refresh(System.Func)

Triggered when the content of a Window has finished loading via Ajax, when the Window iframe has finished loading, or when the Refresh button has been clicked on a Window with static content.

For more information see Refresh event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Refresh(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Resize(System.String)

Triggered when the user resizes the Window.

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().Window()
                        .Name("Window")
                        .Events(events => events.Resize("onResize"))
            )

Resize(System.Func)

Triggered when the user resizes the Window.

For more information see Resize event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Resize(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

Restore(System.String)

Triggered when the Window is restored to its previous state(maximized or minimized) by pressing the restore button, or when the restore() method is called.

For more information see Restore event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Restore("onRestore"))
            )

Restore(System.Func)

Triggered when the Window is restored to its previous state(maximized or minimized) by pressing the restore button, or when the restore() method is called.

For more information see Restore event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Restore(
                            @<text>
                            function(e) {
                                //event handling code
                            }
                            </text>
                       ))
            )

In this article
Not finding the help you need?