New to Telerik UI for ASP.NET Core? 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"))
            )

Change(System.Func)

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.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @(Html.Kendo().Captcha()
               .Name("captcha")
               .Events(events => events.Change(@<text>
                  function(e) {
                      // Handle the Change event inline.
                  }
                  </text>)
               )
             )

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"))
            )

RequestEnd(System.Func)

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.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @(Html.Kendo().Captcha()
               .Name("captcha")
               .Events(events => events.RequestEnd(@<text>
                  function(e) {
                      // Handle the RequestEnd event inline.
                  }
                  </text>)
               )
             )

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"))
            )

RequestStart(System.Func)

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.Func<Object,Object>

The handler code wrapped in a text tag.

Example


             @(Html.Kendo().Captcha()
               .Name("captcha")
               .Events(events => events.RequestStart(@<text>
                  function(e) {
                      // Handle the RequestStart event inline.
                  }
                  </text>)
               )
             )

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"))
            )

Error(System.Func)

For more information see Error event.

Parameters

handler - System.Func<Object,Object>
In this article
Not finding the help you need?