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

SankeyBuilder

Methods

Data(System.Action)

The data of the Sankey. The data object contains the Sankey nodes and links configuration.

Parameters

configurator - System.Action<SankeyDataSettingsBuilder>

The action that configures the data.

DisableAutoLayout(System.Boolean)

If set to true, the Sankey will not automatically reorder the nodes to reduce the number of links that cross over each other.

Parameters

value - System.Boolean

The value that configures the disableautolayout.

Labels(System.Action)

The default labels configuration of the Sankey. The labels configuration options will be overridden by the data.nodes.label configuration.

Parameters

configurator - System.Action<SankeyLabelsSettingsBuilder>

The action that configures the labels.

Legend(System.Action)

The legend configuration options of the Sankey.

Parameters

configurator - System.Action<SankeyLegendSettingsBuilder>

The action that configures the legend.

Links(System.Action)

The default links configuration of the Sankey. The links configuration options will be overridden by the data.links configuration.

Parameters

configurator - System.Action<SankeyLinksSettingsBuilder>

The action that configures the links.

Messages(System.Action)

The configuration of the messages displayed in the Sankey.

Parameters

configurator - System.Action<SankeyMessagesSettingsBuilder>

The action that configures the messages.

Nodes(System.Action)

The default nodes configuration of the Sankey. The nodes configuration options will be overridden by the data.nodes configuration.

Parameters

configurator - System.Action<SankeyNodesSettingsBuilder>

The action that configures the nodes.

Title(System.Action)

The Sankey title configuration options.

Parameters

configurator - System.Action<SankeyTitleSettingsBuilder>

The action that configures the title.

Tooltip(System.Action)

The tooltip configuration options.

Parameters

configurator - System.Action<SankeyTooltipSettingsBuilder>

The action that configures the tooltip.

Theme(System.String)

The Theme configuration options.

Parameters

theme - System.String

The theme name.

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<SankeyEventBuilder>

The client events action.

Example


            @(Html.Kendo().Sankey()
                        .Name("Sankey")
                        .Events(events => events
                            .LinkClick("onLinkClick")
                        )
            )

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?