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

AIPromptBuilder

Methods

PromptOutputs(System.Action)

An array of prompt outputs to display in the prompt view.

Parameters

configurator - System.Action<AIPromptPromptOutputFactory>

The action that configures the promptoutputs.

PromptSuggestionItemTemplate(System.String)

The template of the prompt suggestion item. It can be a string, a function or a Kendo Template.

Parameters

value - System.String

The value that configures the promptsuggestionitemtemplate.

PromptSuggestionItemTemplateId(System.String)

The template of the prompt suggestion item. It can be a string, a function or a Kendo Template.

Parameters

value - System.String

The value that configures the promptsuggestionitemtemplate.

PromptSuggestionItemTemplateView(System.Web.Mvc.MvcHtmlString)

The template of the prompt suggestion item. It can be a string, a function or a Kendo Template.

Parameters

value - System.Web.Mvc.MvcHtmlString

The value that configures the promptsuggestionitemtemplate.

PromptSuggestionItemTemplateHandler(System.String)

The template of the prompt suggestion item. It can be a string, a function or a Kendo Template.

Parameters

value - System.String

The value that configures the promptsuggestionitemtemplate.

PromptSuggestionItemTemplate(Kendo.Mvc.UI.TemplateBuilder)

The template of the prompt suggestion item. It can be a string, a function or a Kendo Template.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the promptsuggestionitemtemplate.

ToolbarItems(System.Action)

An array of toolbar items to display in the header Toolbar. They will be rendered after the items generated from the configurations of the views.

Parameters

configurator - System.Action<AIPromptToolbarItemFactory>

The action that configures the toolbaritems.

ShowOutputRating(System.Boolean)

Specifies if the output rating should be displayed on the output card.

Parameters

value - System.Boolean

The value that configures the showoutputrating.

Views(System.Action)

An array of view configurations.

Parameters

configurator - System.Action<AIPromptViewFactory>

The action that configures the views.

Messages(System.Action)

The text messages displayed in the component. Use this option to customize or localize the messages.

Parameters

configurator - System.Action<AIPromptMessagesSettingsBuilder>

The action that configures the messages.

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<AIPromptEventBuilder>

The client events action.

Example


            @(Html.Kendo().AIPrompt()
                        .Name("AIPrompt")
                        .Events(events => events
                            .CommandExecute("onCommandExecute")
                        )
            )

PromptSuggestions(System.String)

Adds a suggestion to the PromptSuggestions collection.

Parameters

value - System.String

The suggestion

PromptSuggestions(System.Collections.Generic.ICollection)

Sets the PromptSuggestions collection

Parameters

value - System.Collections.Generic.ICollection<String>

The collection

ActiveView(System.Object)

Specifies the index of the active view or the name of the view.

Parameters

value - System.Object

The value that configures the activeview.

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

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>

AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

Parameters

value - System.Boolean

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();
            )

ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Object

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

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

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

ToHtmlString()

ToClientTemplate()

In this article
Not finding the help you need?