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

CaptchaBuilder

Defines the fluent API for configuring the Kendo UI Captcha

Properties

WriteAction - Func

Methods

CaptchaImage(System.String)

The source of an image to be rendered as captcha initially. If not set the handler to reset the image will be called.

Parameters

captchaImage - System.String

The value that configures the captchaImage.

AudioHandler(System.Action)

The action for the audioHandler.

Parameters

configurator - System.Action<CrudOperationBuilder>

AudioHandler(System.String)

The action for the audioHandler.

Parameters

url - System.String

AudioHandlerFunction(System.String)

The function callback for the audioHandler.

Parameters

handler - System.String

Handler(System.Action)

The action for the handler.

Parameters

configurator - System.Action<CrudOperationBuilder>

Handler(System.String)

The action for the handler.

Parameters

url - System.String

HandlerFunction(System.String)

The function callback for the handler.

Parameters

handler - System.String

ValidationHandler(System.Action)

The action for the validationHandler.

Parameters

configurator - System.Action<CrudOperationBuilder>

ValidationHandler(System.String)

The action for the validationHandler.

Parameters

url - System.String

ValidationHandlerFunction(System.String)

The function callback for the validationHandler.

Parameters

handler - System.String

AudioButton(System.Boolean)

Toggles the audio button.

Parameters

value - System.Boolean

The value for AudioButton

CaptchaId(System.String)

The ID of the captcha to be added to the hidden input initially. If not set the handler to reset the ID will be called.

Parameters

value - System.String

The value for CaptchaId

DataCaptchaField(System.String)

The field that returns the captcha's image source. Used in the handler function/response that resets the captcha's image and id.

Parameters

value - System.String

The value for DataCaptchaField

DataCaptchaIdField(System.String)

The field that returns the captcha's id. Used in the handler function/response that resets the captcha's image and id.

Parameters

value - System.String

The value for DataCaptchaIdField

Messages(System.Action)

Provides configuration options for the messages present in the Captcha widget.

Parameters

configurator - System.Action<CaptchaMessagesSettingsBuilder>

The configurator for the messages setting.

ResetButton(System.Boolean)

Toggles the reset button.

Parameters

value - System.Boolean

The value for ResetButton

ValidateOnBlur(System.Boolean)

Whether to trigger validation when input is blurred. This option is useful if you are not using the Kendo Validator or the Kendo Form widgets as it enables to automatically trigger remote validation and use the widet's API in custom validation scenario.

Parameters

value - System.Boolean

The value for ValidateOnBlur

ValidateOnBlur()

Whether to trigger validation when input is blurred. This option is useful if you are not using the Kendo Validator or the Kendo Form widgets as it enables to automatically trigger remote validation and use the widet's API in custom validation scenario.

VolumeControl(System.Boolean)

Whether to show a volume control when audio is played.

Parameters

value - System.Boolean

The value for VolumeControl

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<CaptchaEventBuilder>

The client events action.

Example


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

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

In this article
Not finding the help you need?