EditorEventBuilder
Methods
Change(System.String)
Defines the 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.String
The name of the JavaScript function that will handle the 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(e) {
//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 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(e) {
//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 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>)
)
)
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 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>)
)
)
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 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>)
)
)
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 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>)
)
)