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

CaptchaEventBuilder

Methods

Change(System.String)

Defines the handler of the Change client-side event. Fires when the value of the text input changes.

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. Fires when a specified request finishes. The request type can be distinguished by using 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. Fires when the Captcha triggers a request. The request type can be distinguished by using 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. Fires when a request triggered by the Captcha fails. The request type can be distinguished by using 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"))
            )

In this article
Not finding the help you need?