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

EditorEventBuilder

Methods

Change(System.String)

Defines the handler of the Change client-side event. Fires when the Editor is blurred and its content has changed.

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().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .Change("onChange")
                        )
            )

Change(System.Func)

Defines the inline handler of the Change client-side event. Fires when Editor is blurred and its content has changed.

For more information see Change event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .Change(@<text>
                                function(ev) {
                                    //event handling code
                                }
                            </text>)
                        )
            )

Execute(System.String)

Defines the handler of the Execute client-side event. Fires when an Editor command is executed.

For more information see Execute event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .Execute("onExecute")
                        )
            )

Execute(System.Func)

Defines the inline handler of the Execute client-side event. Fires when an Editor command is executed.

For more information see Execute event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .Execute(@<text>
                                function(ev) {
                                    //event handling code
                                }
                            </text>)
                        )
            )

Keydown(System.String)

Defines the handler of the KeyDown client-side event. Fires when the user depresses a keyboard key. Triggered multiple times if the user holds the key down.

For more information see Keydown event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .Keydown("onKeydown")
                        )
            )

Keydown(System.Func)

Defines the inline handler of the KeyDown client-side event. Fires when the user depresses a keyboard key. Triggered multiple times if the user holds the key down.

For more information see Keydown event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .Keydown(@<text>
                                function(ev) {
                                    //event handling code
                                }
                            </text>)
                        )
            )

Keyup(System.String)

Defines the handler of the KeyUp client-side event. Fires when the user releases a keyboard key.

For more information see Keyup event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .Keyup("onKeyup")
                        )
            )

Keyup(System.Func)

Defines the inline handler of the KeyUp client-side event. Fires when the user releases a keyboard key.

For more information see Keyup event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .Keyup(@<text>
                                function(ev) {
                                    //event handling code
                                }
                            </text>)
                        )
            )

Paste(System.String)

Defines the handler of the Paste client-side event. Fires before the content is pasted in the Editor.

For more information see Paste event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .Paste("onPaste")
                        )
            )

Paste(System.Func)

Defines the inline handler of the Paste client-side event. Fires before the content is pasted in the Editor.

For more information see Paste event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .Paste(@<text>
                                function(ev) {
                                    //event handling code
                                }
                            </text>)
                        )
            )

PdfExport(System.String)

Defines the handler of the PdfExport client-side event. 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().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .PdfExport("onPdfExport")
                        )
            )

PdfExport(System.Func)

Defines the inline handler of the PdfExport client-side event. 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().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .PdfExport(@<text>
                                function(ev) {
                                    console.log(ev);
                                }
                            </text>)
                        )
            )

Select(System.String)

Defines the handler of the Select client-side event. Fires when the Editor selection has changed.

For more information see Select event.

Parameters

handler - System.String

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

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .Select("onSelect")
                        )
            )

Select(System.Func)

Defines the inline handler of the Select client-side event. Fires when the Editor selection has changed.

For more information see Select event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @( Html.Kendo().Editor()
                        .Name("Editor")
                        .Events(events => events
                            .Select(@<text>
                                function(ev) {
                                    //event handling code
                                }
                            </text>)
                        )
            )

In this article
Not finding the help you need?