# 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](https://docs.telerik.com/kendo-ui/api/ui/captcha/events/change) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Change event.

#### RETURNS

Returns the current instance of [CaptchaEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/captchaeventbuilder) .

#### Example

```
 
             @( Html.Kendo().Captcha()
                .Name("captcha")
                .Events(events => events.Change("onChange"))
            )
             
```

### Change(System.Func)

Defines the handler of the Change client-side event. Fired when users changes the input of the Captcha component.

For more information see [Change](https://docs.telerik.com/kendo-ui/api/ui/captcha/events/change) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [CaptchaEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/captchaeventbuilder) .

#### 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. 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](https://docs.telerik.com/kendo-ui/api/ui/captcha/events/requestend) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the RequestEnd event.

#### RETURNS

Returns the current instance of [CaptchaEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/captchaeventbuilder) .

#### Example

```
 
             @( Html.Kendo().Captcha()
                .Name("captcha")
                .Events(events => events.RequestEnd("onRequestEnd"))
            )
             
```

### RequestEnd(System.Func)

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](https://docs.telerik.com/kendo-ui/api/ui/captcha/events/requestend) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [CaptchaEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/captchaeventbuilder) .

#### 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. 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](https://docs.telerik.com/kendo-ui/api/ui/captcha/events/requeststart) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the RequestStart event.

#### RETURNS

Returns the current instance of [CaptchaEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/captchaeventbuilder) .

#### Example

```
 
             @( Html.Kendo().Captcha()
                .Name("captcha")
                .Events(events => events.RequestStart("onRequestStart"))
            )
             
```

### RequestStart(System.Func)

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](https://docs.telerik.com/kendo-ui/api/ui/captcha/events/requeststart) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [CaptchaEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/captchaeventbuilder) .

#### 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. 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](https://docs.telerik.com/kendo-ui/api/ui/captcha/events/error) event.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will handle the Error event.

#### RETURNS

Returns the current instance of [CaptchaEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/captchaeventbuilder) .

#### Example

```
 
             @( Html.Kendo().Captcha()
                .Name("captcha")
                .Events(events => events.Error("onError"))
            )
             
```

### Error(System.Func)

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](https://docs.telerik.com/kendo-ui/api/ui/captcha/events/error) event.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

#### RETURNS

Returns the current instance of [CaptchaEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/captchaeventbuilder) .

#### Example

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