TreeMapBuilder
Defines the fluent API for configuring the Telerik UI TreeMap for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class TreeMapBuilder : WidgetBuilderBase<TreeMap, TreeMapBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<TreeMap, TreeMapBuilder>TreeMapBuilder
Implements:
Inherited Members
Constructors
Methods
If set to "false", the TreeMap will not bind to the DataSource during initialization. In this case, the data binding will occur when the Change event of the DataSource fires. By default the TreeMap will bind to its DataSource specified in the configuration.
public TreeMapBuilder AutoBind(bool value)
The value that configures the AutoBind option.
Returns:Defines the data item field that contains the tile color.
public TreeMapBuilder ColorField(string value)
The name of the Model property that holds the tile color.
Returns:Defines the default colors for the TreeMap items (tiles).
public TreeMapBuilder Colors(Action<TreeMapColorRangeFactory> configurator)
The action that configures the colors.
Returns:Defines the default colors for the TreeMap items (tiles).
public TreeMapBuilder Colors(params string[] value)
The array of colors or color ranges.
Returns:Configures the DataSource of the TreeMap.
public TreeMapBuilder DataSource(Action<HierarchicalDataSourceBuilder<object>> configurator)
The action that configures the DataSource(Action<HierarchicalDataSourceBuilder<object>>).
Returns:Configures the handled client-side events of the TreeMap.
public TreeMapBuilder Events(Action<TreeMapEventBuilder> configurator)
The action that configures the available events.
Returns:Specifies the template that renders the content of the tile. The available fields in the template are:
- dataItem: The original data item used to construct the point.
- text: The original tile text.
public TreeMapBuilder Template(string value)
The value that configures the content of the template.
Returns:Specifies the template that renders the content of the tile. The available fields in the template are:
- dataItem: The original data item used to construct the point.
- text: The original tile text.
public TreeMapBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Specifies the template that renders the content of the tile. The available fields in the template are:
- dataItem: The original data item used to construct the point.
- text: The original tile text.
public TreeMapBuilder TemplateHandler(string value)
The value that configures the content of the template.
Returns:Specifies the template that renders the content of the tile. The available fields in the template are:
- dataItem: The original data item used to construct the point.
- text: The original tile text.
public TreeMapBuilder TemplateId(string value)
The value that configures the content of the template.
Returns:Specifies the template that renders the content of the tile. The available fields in the template are:
- dataItem: The original data item used to construct the point.
- text: The original tile text.
public TreeMapBuilder TemplateView(MvcHtmlString value)
The value that configures the content of the template.
Returns:Defines the data item field that contains the tile title.
public TreeMapBuilder TextField(string value)
The name of the Model property that holds the title of the tile.
Returns:Sets the type of the Kendo UI theme of the TreeMap. Note: Starting with version Q2 2024, the default value for the Theme option is "sass" instead of "default". It is recommended to use "sass" with version Q2 2024 or later.
public TreeMapBuilder Theme(string value)
The value that configures the theme.
Returns:Defines the type of the layout.
public TreeMapBuilder Type(TreeMapType value)
The enum value that configures the type.
Returns:Defines the data item field that contains the tile value.
public TreeMapBuilder ValueField(string value)
The name of the Model property that holds the tile value.
Returns: