CaptchaEventBuilder
Methods
Change(System.String)
Defines the handler of the Change client-side event. Fired when users changes the input of the Captcha component.
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().Captcha()
.Name("captcha")
.Events(events => events.Change("onChange"))
)
RequestEnd(System.String)
Defines the handler of the RequestEnd client-side event. Fired when a request to a handler is finished - can be distinguished via the type argument in the event data.
For more information see RequestEnd event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the RequestEnd event.
Example
@( Html.Kendo().Captcha()
.Name("captcha")
.Events(events => events.RequestEnd("onRequestEnd"))
)
RequestStart(System.String)
Defines the handler of the RequestStart client-side event. Fired when the captcha makes a request to a handler - can be distinguished via the type argument in the event data.
For more information see RequestStart event.
Parameters
handler - System.String
The name of the JavaScript function that will handle the RequestStart event.
Example
@( Html.Kendo().Captcha()
.Name("captcha")
.Events(events => events.RequestStart("onRequestStart"))
)
Error(System.String)
Defines the handler of the Error client-side event. Fired when a request triggered by the component fails - can be distinguished via the type argument in the event data.
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().Captcha()
.Name("captcha")
.Events(events => events.Error("onError"))
)