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

WindowEventBuilder

Methods

Minimize(System.Func)

Defines the name of the JavaScript function that will handle the the Minimize client-side event.

For more information see Minimize event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


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

Maximize(System.String)

Defines the name of the JavaScript function that will handle the the Maximize client-side event.

For more information see Maximize event.

Parameters

handler - System.String

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

Example


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

Maximize(System.Func)

Defines the name of the JavaScript function that will handle the the Maximize client-side event.

For more information see Maximize event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


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

Open(System.String)

Defines the name of the JavaScript function that will handle the the Open client-side event.

For more information see Open event.

Parameters

handler - System.String

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

Example


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

Open(System.Func)

Defines the name of the JavaScript function that will handle the the Open client-side event.

For more information see Open event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


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

Activate(System.String)

Defines the name of the JavaScript function that will handle the the Activate client-side event.

For more information see Activate event.

Parameters

handler - System.String

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

Example


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

Activate(System.Func)

Defines the name of the JavaScript function that will handle the the Activate client-side event.

For more information see Activate event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


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

Deactivate(System.String)

Defines the name of the JavaScript function that will handle the the Deactivate client-side event.

For more information see Deactivate event.

Parameters

handler - System.String

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

Example


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

Deactivate(System.Func)

Defines the name of the JavaScript function that will handle the the Deactivate client-side event.

For more information see Deactivate event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


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

Close(System.String)

Defines the name of the JavaScript function that will handle the the Close client-side event.

For more information see Close event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Close("onClose"))
            )

Close(System.Func)

Defines the name of the JavaScript function that will handle the the Close client-side event.

For more information see Close event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


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

DragStart(System.String)

Defines the name of the JavaScript function that will handle the the DragStart client-side event.

For more information see DragStart event.

Parameters

handler - System.String

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

Example


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

DragStart(System.Func)

Defines the name of the JavaScript function that will handle the the DragStart client-side event.

For more information see DragStart event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


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

DragEnd(System.String)

Defines the name of the JavaScript function that will handle the the DragEnd client-side event.

For more information see DragEnd event.

Parameters

handler - System.String

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

Example


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

DragEnd(System.Func)

Defines the name of the JavaScript function that will handle the the DragEnd client-side event.

For more information see DragEnd event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


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

Resize(System.String)

Defines the name of the JavaScript function that will handle the the Resize client-side event.

For more information see Resize event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Resize("onResize"))
            )

Resize(System.Func)

Defines the name of the JavaScript function that will handle the the Resize client-side event.

For more information see Resize event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


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

Refresh(System.String)

Defines the name of the JavaScript function that will handle the the Refresh client-side event.

For more information see Refresh event.

Parameters

handler - System.String

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

Example


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

Refresh(System.Func)

Defines the name of the JavaScript function that will handle the the Refresh client-side event.

For more information see Refresh event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


             @( Html.Kendo().Window()
                        .Name("Window")
                        .Events(events => events.Refresh(
                            @<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 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 (Razor syntax).

Example


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

Error(System.String)

Defines the name of the JavaScript function that will handle the the Error client-side event.

For more information see Error event.

Parameters

handler - System.String

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

Example


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

Error(System.Func)

Defines the name of the JavaScript function that will handle the the Error client-side event.

For more information see Error event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag (Razor syntax).

Example


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

Minimize(System.String)

Defines the name of the JavaScript function that will handle the the Minimize client-side event.

For more information see Minimize event.

Parameters

handler - System.String

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

Example


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

In this article
Not finding the help you need?