Skip to main content

kendoTreeMap

Namespace: Wisej.Web.Ext.Kendo

Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)

The TreeMap displays hierarchical data in a traditional tree structure.

public class kendoTreeMap : kendoBase

Constructors​

Instance member kendoTreeMap()​

Constructs a new instance of the kendoTreeMap class.

Example:

The following example creates a tree map and assigns its hierarchical data through the Options property.

var treeMap = new kendoTreeMap();
treeMap.Options.textField = "name";
treeMap.Options.valueField = "value";
treeMap.Options.dataSource = new object[]
{
new
{
name = "Sales", value = 100,
items = new[]
{
new { name = "Europe", value = 60 },
new { name = "Americas", value = 40 }
}
}
};
treeMap.Dock = DockStyle.Fill;
this.Controls.Add(treeMap);

Instance member kendoTreeMap(options)​

Constructs a new instance of the kendoTreeMap class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a tree map that lays out its tiles horizontally.

var treeMap = new kendoTreeMap(new
{
type = "horizontal",
textField = "name",
valueField = "value",
dataSource = new object[]
{
new
{
name = "Disk usage", value = 480,
items = new[]
{
new { name = "Videos", value = 300 },
new { name = "Pictures", value = 120 },
new { name = "Documents", value = 60 }
}
}
}
});
treeMap.Dock = DockStyle.Fill;
this.Controls.Add(treeMap);

Implements​