EditorEventBuilder
Defines the fluent interface for configuring the Editor events.
Methods
Change(System.String)
Defines the name of the JavaScript function that will handle the the Change client-side event.
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
For more information see Change event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Events(events => events.Change(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
Execute(System.String)
Defines the name of the JavaScript function that will handle the the Execute client-side event.
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
For more information see Execute event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Events(events => events.Execute(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
Paste(System.String)
Defines the name of the JavaScript function that will handle the the Paste client-side event.
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
For more information see Paste event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Events(events => events.Paste(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
Select(System.String)
Defines the name of the JavaScript function that will handle the the Select client-side event.
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
For more information see Select event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Events(events => events.Select(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
KeyUp(System.String)
Defines the name of the JavaScript function that will handle the the KeyUp client-side event.
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
For more information see KeyUp event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Events(events => events.KeyUp(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)
KeyDown(System.String)
Defines the name of the JavaScript function that will handle the the KeyDown client-side event.
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
For more information see KeyDown event.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag (Razor syntax).
Example
@( Html.Kendo().Editor()
.Name("Editor")
.Events(events => events.KeyDown(
@<text>
function(e) {
//event handling code
}
</text>
))
.Render();
)