CaptchaBuilder
Defines the fluent API for configuring the Telerik UI for ASP.NET MVC Captcha.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class CaptchaBuilder : WidgetBuilderBase<Captcha, CaptchaBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Captcha, CaptchaBuilder>CaptchaBuilder
Implements:
Inherited Members
Constructors
Methods
Toggles the audio button.
public CaptchaBuilder AudioButton(bool value)
The value that configures the visibility of the audio button.
Returns:The URL or AJAX settings that fetches the audio of the captcha.
public CaptchaBuilder AudioHandler(Action<CrudOperationBuilder> configurator)
The action that configures the audio settings.
Returns:Defines the URL that fetches the audio of the captcha.
public CaptchaBuilder AudioHandler(string url)
The URL that returns the audio source.
Returns:The JavaScript function that fetches the audio of the captcha. Within the function, call the "args.success" method with the source of the audio (base64 stream).
public CaptchaBuilder AudioHandlerFunction(string handler)
The JavaScript function that returns the source of the audio.
Returns:Defines the ID of the captcha that initially must be displayed. The ID will be stored in the hidden input. If the CaptchaId() is not set, the Handler() option will initiate a request to the remote endpoint to retrieve the captcha ID.
public CaptchaBuilder CaptchaId(string value)
The value that configures the captcha ID.
Returns:Defines the image source that initially must be rendered as captcha. If the CaptchaImage() is not set, the Handler() option will initiate a request to the remote endpoint to retrieve the image.
public CaptchaBuilder CaptchaImage(string captchaImage)
The value that configures the initial image.
Returns:Sets the name of the field that holds the captcha's image source. It is used in the Handler() option that resets the captcha's image and ID.
public CaptchaBuilder DataCaptchaField(string value)
The value that configures the DataCaptchaField.
Returns:Sets the name of the field that holds the captcha's ID. It is used in the Handler() option that resets the captcha's image and ID.
public CaptchaBuilder DataCaptchaIdField(string value)
The value that configures the DataCaptchaIdField.
Returns:Handles the client-side events of the Captcha.
public CaptchaBuilder Events(Action<CaptchaEventBuilder> configurator)
The action that configures the available events.
Returns:Defines the URL or AJAX settings that fetches the captcha image and id. The request triggers initially when the CaptchaImage() and CaptchaId() options are not defined to request the captcha and when the "Reset" button is clicked.
public CaptchaBuilder Handler(Action<CrudOperationBuilder> configurator)
The action that configures the endpoint to return the image initially or when resetting the Captcha.
Returns:Defines the URL that fetches the captcha image and id.
public CaptchaBuilder Handler(string url)
The URL that returns the captcha image and id.
Returns:The JavaScript function that fetches the captcha image and id. Within the function, call the "args.success()" method with the received captcha image and id.
public CaptchaBuilder HandlerFunction(string handler)
The JavaScript function that returns the captcha image and id.
Returns:Defines the localization of the texts that are used in the Captcha.
public CaptchaBuilder Messages(Action<CaptchaMessagesSettingsBuilder> configurator)
The action that configures the messages settings.
Returns:Toggles the reset button.
public CaptchaBuilder ResetButton(bool value)
The value that configures the visibility of the reset button.
Returns:Defines whether to trigger the validation when the input is blurred. This option is useful when the Kendo UI Validator or the Telerik UI Form are not used, as it automatically triggers the remote validation.
public CaptchaBuilder ValidateOnBlur(bool value)
The value that enables the validation on blur.
Returns:Defines the URL or AJAX settings that validates the text input of the Captcha.
public CaptchaBuilder ValidationHandler(Action<CrudOperationBuilder> configurator)
The action that configures the validation of the Captcha.
Returns:Defines the URL of the endpoint that validates the text input of the Captcha.
public CaptchaBuilder ValidationHandler(string url)
The URL of the endpoint.
Returns:The JavaScript function that validates the text input of the Captcha. Within the function, call the "args.success()" method with the boolean value indicating whether the validation passed successfully.
public CaptchaBuilder ValidationHandlerFunction(string handler)
The JavaScript function that validates the Captcha.
Returns:Toggles the volume control button when the audio is played.
public CaptchaBuilder VolumeControl(bool value)
The value that configures the visibility of the volume control button.
Returns: