TreeMap
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class TreeMap : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseTreeMap
Implements:
Inherited Members
Constructors
public TreeMap(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Fields
public IUrlGenerator urlGenerator
Properties
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 bool? AutoBind { get; set; }
The data item field which contains the tile color.
public string ColorField { get; set; }
public List<string[]> ColorRanges { get; set; }
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 string[] Colors { get; set; }
public DataSource DataSource { get; }
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 string Template { get; set; }
The handler for the Template
public string TemplateHandler { get; set; }
The id for the Template
public string TemplateId { get; set; }
The data item field which contains the tile title.
public string TextField { get; set; }
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 string Theme { get; set; }
The layout type for the Treemap.
public TreeMapType? Type { get; set; }
The data item field which contains the tile value.
public string ValueField { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: