TreeMapBuilder
Defines the fluent API for configuring the Telerik UI for ASP.NET Core TreeMap
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class TreeMapBuilder : WidgetBuilderBase<TreeMap, TreeMapBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<TreeMap, TreeMapBuilder>TreeMapBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the TreeMapBuilder class.
Methods
If set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.
public TreeMapBuilder AutoBind(bool value)
The value for AutoBind
Returns:Returns the current TreeMapBuilder instance.
The data item field which contains the tile color.
public TreeMapBuilder ColorField(string value)
The value for ColorField
Returns:Returns the current TreeMapBuilder instance.
Defines the default colors for the TreeMap items (tiles).
public TreeMapBuilder Colors(Action<TreeMapColorRangeFactory> configurator)
The action that configures the colors.
Returns:Returns the current TreeMapBuilder instance.
The default colors for the TreeMap items (tiles). Can be set to array of specific colors or array of color ranges. For more information on the widget behavior, see the Colors section on the TreeMap Overview page.
public TreeMapBuilder Colors(params string[] value)
The value for Colors
Returns:Returns the current TreeMapBuilder instance.
Configures the DataSource of the TreeMap.
public TreeMapBuilder DataSource(Action<HierarchicalDataSourceBuilder<object>> configurator)
The action that configures the DataSource(Action<HierarchicalDataSourceBuilder<object>>).
Returns:Returns the current TreeMapBuilder instance.
Configures the client-side events.
public TreeMapBuilder Events(Action<TreeMapEventBuilder> configurator)
The client events action.
Returns:Returns the current TreeMapBuilder instance.
The template which renders the treeMap tile content.The fields which can be used in the template are: dataItem - the original data item used to construct the point. or text - the original tile text..
public TreeMapBuilder Template(string value)
The value for Template
Returns:Returns the current TreeMapBuilder instance.
The template which renders the treeMap tile content.The fields which can be used in the template are: dataItem - the original data item used to construct the point. or text - the original tile text..
public TreeMapBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Returns the current TreeMapBuilder instance.
The template which renders the treeMap tile content.The fields which can be used in the template are: dataItem - the original data item used to construct the point. or text - the original tile text..
public TreeMapBuilder TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:Returns the current TreeMapBuilder instance.
The template which renders the treeMap tile content.The fields which can be used in the template are: dataItem - the original data item used to construct the point. or text - the original tile text..
public TreeMapBuilder TemplateId(string templateId)
The ID of the template element for Template
Returns:Returns the current TreeMapBuilder instance.
The template which renders the treeMap tile content.The fields which can be used in the template are: dataItem - the original data item used to construct the point. or text - the original tile text..
public TreeMapBuilder TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:Returns the current TreeMapBuilder instance.
The data item field which contains the tile title.
public TreeMapBuilder TextField(string value)
The value for TextField
Returns:Returns the current TreeMapBuilder instance.
The theme of the TreeMap.Note: Since Q2 2024 release, the default value for the theme property is "sass" instead of "default". It is recommended to use "sass" with version Q2 2024 or later.
public TreeMapBuilder Theme(string value)
The value for Theme
Returns:Returns the current TreeMapBuilder instance.
The layout type for the Treemap.
public TreeMapBuilder Type(TreeMapType value)
The value for Type
Returns:Returns the current TreeMapBuilder instance.
The data item field which contains the tile value.
public TreeMapBuilder ValueField(string value)
The value for ValueField
Returns:Returns the current TreeMapBuilder instance.