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.
- C#
- VB.NET
public class kendoTreeMap : kendoBase
Public Class kendoTreeMap
Inherits kendoBase
Constructors
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);
kendoTreeMap(options)
Constructs a new instance of the kendoTreeMap class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);