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

CaptchaBuilder

Methods

AudioButton(System.Boolean)

Toggles the audio button.

Parameters

value - System.Boolean

The value that configures the 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 that configures the 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 that configures the 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 that configures the datacaptchaidfield.

Messages(System.Action)

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

Parameters

configurator - System.Action<CaptchaMessagesSettingsBuilder>

The action that configures the messages.

ResetButton(System.Boolean)

Toggles the reset button.

Parameters

value - System.Boolean

The value that configures the 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 that configures the validateonblur.

VolumeControl(System.Boolean)

Whether to show a volume control when audio is played.

Parameters

value - System.Boolean

The value that configures the volumecontrol.

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

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.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name of the component.

Example


            @(Html.Kendo().Grid<OrderViewModel>()
               .Name("grid")
               .Columns(columns =>
               {
                   columns.Bound(p => p.OrderID).Filterable(false);
                   columns.Bound(p => p.Freight);  
               })
               .DataSource(dataSource => dataSource
                   .Ajax()
                   .PageSize(20)
                   .Read(read => read.Action("Orders_Read", "Grid"))
               )
            )

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean)

Parameters

deferred - System.Boolean

ModelMetadata(System.Web.Mvc.ModelMetadata)

Uses the Metadata of the Model.

Parameters

modelMetadata - System.Web.Mvc.ModelMetadata

The metadata set for the Model

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Parameters

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

AsChildComponent()

Render()

Renders the component.

Example


            @(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
            @( Html.Kendo().Grid(Model)
                .Name("grid")
                .DetailTemplate(product => {
                    )
                       Product Details:
                       <div>Product Name: @( product.ProductName )</div>
                       <div>Units In Stock: @( product.UnitsInStock )</div>
                    @(
                })
                .Render();
            )

ToHtmlString()

ToClientTemplate()

In this article
Not finding the help you need?