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

TreeMap

Class

Kendo UI TreeMap component

Definition

Constructors

Initializes a new instance of the TreeMap class.

C#
public TreeMap(ViewContext viewContext)
Parameters:viewContextViewContext

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.

C#
public bool? AutoBind { get; set; }

The data item field which contains the tile color.

C#
public string ColorField { get; set; }

ColorRanges member.

C#
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.

C#
public string[] Colors { get; set; }

Gets or sets the DataSource.

C#
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..

C#
public string Template { get; set; }

The handler that returns the template used for Template

C#
public string TemplateHandler { get; set; }

The id of the script element used for Template

C#
public string TemplateId { get; set; }

The data item field which contains the tile title.

C#
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.

C#
public string Theme { get; set; }

The layout type for the Treemap.

C#
public TreeMapType? Type { get; set; }

The data item field which contains the tile value.

C#
public string ValueField { get; set; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)