CitationBuilder

Methods

Sources(System.Action)

An array of source objects displayed in the popover. Each source object can include url, title, and description properties.

Parameters

configurator - System.Action<CitationSourceFactory>

The action that configures the sources.

Label(System.String)

The text label displayed on the chip. When null, the hostname of the first source URL is used automatically.

Parameters

value - System.String

The value that configures the label.

SvgIcon(System.String)

The name of the SVG icon displayed on the chip.

Parameters

value - System.String

The value that configures the svgicon.

ShowAdditionalCount(System.Boolean)

When true and more than one source is present, a +N count is appended to the chip label showing the number of additional sources.

Parameters

value - System.Boolean

The value that configures the showadditionalcount.

SourceIcon(System.String)

The name of the SVG icon used for source links inside the popover.

Parameters

value - System.String

The value that configures the sourceicon.

SourceSVGIcon(System.String)

Overrides sourceIcon with a specific SVG icon name for source links inside the popover.

Parameters

value - System.String

The value that configures the sourcesvgicon.

PopoverWidth(System.Double)

The width of the sources popover in pixels.

Parameters

value - System.Double

The value that configures the popoverwidth.

BodyTemplateHandler(System.String)

A function used to render the entire popover body. Receives { sources: [] } as the first argument and must return an HTML string. When set, the built-in navigation buttons and source layout are not rendered.

Parameters

value - System.String

The value that configures the bodytemplate.

BodyTemplate(Kendo.Mvc.UI.Fluent.TemplateBuilder)

A function used to render the entire popover body. Receives { sources: [] } as the first argument and must return an HTML string. When set, the built-in navigation buttons and source layout are not rendered.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the bodytemplate.

Messages(System.Action)

Contains the localizable text strings used by the widget.

Parameters

configurator - System.Action<CitationMessagesSettingsBuilder>

The action that configures the messages.

ShowOn(Kendo.Mvc.UI.CitationShowOn)

Determines when the popover is shown.

Parameters

value - CitationShowOn

The value that configures the showon.

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<CitationEventBuilder>

The client events action.

Example

Razor
 
            @(Html.Kendo().Citation()
                        .Name("Citation")
                        .Events(events => events
                            .Open("onOpen")
                        )
            )
             

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

Razor
 
            @(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

Razor
 
            @(@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()