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

Defines the fluent API for configuring the Kendo Sankey for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the Sankey class.

C#
public SankeyBuilder(Sankey component)
Parameters:componentSankey

The component.

Methods

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

C#
public SankeyBuilder Data(Action<SankeyDataSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyDataSettingsBuilder>

The action that configures the data.

Returns:

SankeyBuilder

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

C#
public SankeyBuilder DisableAutoLayout(bool value)
Parameters:valuebool

The value that configures the disableautolayout.

Returns:

SankeyBuilder

If set to true, the Sankey keyboard navigation will be disabled.

C#
public SankeyBuilder DisableKeyboardNavigation(bool value)
Parameters:valuebool

The value that configures the disablekeyboardnavigation.

Returns:

SankeyBuilder

Configures the client-side events.

C#
public SankeyBuilder Events(Action<SankeyEventBuilder> configurator)
Parameters:configuratorAction<SankeyEventBuilder>

The client events action.

Returns:

SankeyBuilder

Example:
C#
@(Html.Kendo().Sankey()
.Name("Sankey")
.Events(events =&gt; events
.LinkClick("onLinkClick")
)
)

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

C#
public SankeyBuilder Labels(Action<SankeyLabelsSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyLabelsSettingsBuilder>

The action that configures the labels.

Returns:

SankeyBuilder

The legend configuration options of the Sankey.

C#
public SankeyBuilder Legend(Action<SankeyLegendSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyLegendSettingsBuilder>

The action that configures the legend.

Returns:

SankeyBuilder

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

C#
public SankeyBuilder Links(Action<SankeyLinksSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyLinksSettingsBuilder>

The action that configures the links.

Returns:

SankeyBuilder

The configuration of the messages displayed in the Sankey.

C#
public SankeyBuilder Messages(Action<SankeyMessagesSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyMessagesSettingsBuilder>

The action that configures the messages.

Returns:

SankeyBuilder

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

C#
public SankeyBuilder Nodes(Action<SankeyNodesSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyNodesSettingsBuilder>

The action that configures the nodes.

Returns:

SankeyBuilder

The Theme configuration options.

C#
public SankeyBuilder Theme(string theme)
Parameters:themestringReturns:

SankeyBuilder

The Sankey title configuration options.

C#
public SankeyBuilder Title(Action<SankeyTitleSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyTitleSettingsBuilder>

The action that configures the title.

Returns:

SankeyBuilder

The tooltip configuration options.

C#
public SankeyBuilder Tooltip(Action<SankeyTooltipSettingsBuilder> configurator)
Parameters:configuratorAction<SankeyTooltipSettingsBuilder>

The action that configures the tooltip.

Returns:

SankeyBuilder