kendoDropDownTree
Namespace: Wisej.Web.Ext.Kendo
Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)
The DropDownTree represents an editor of hierarchical data, rendered in a tree-like structure, which provides multiple selection option and custom nodes.
- C#
- VB.NET
public class kendoDropDownTree : kendoBase
Public Class kendoDropDownTree
Inherits kendoBase
Constructors
kendoDropDownTree()
Constructs a new instance of the kendoDropDownTree class.
Example:
The following example creates a drop-down tree and assigns its nodes through the Options property.
var tree = new kendoDropDownTree();
tree.Options.placeholder = "Select a folder...";
tree.Options.dataSource = new object[]
{
new
{
text = "Documents", value = 1, expanded = true,
items = new object[]
{
new { text = "Invoices", value = 2 },
new { text = "Reports", value = 3 }
}
}
};
this.Controls.Add(tree);
kendoDropDownTree(options)
Constructs a new instance of the kendoDropDownTree class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a drop-down tree with check boxes that allows the selection of multiple nodes.
var tree = new kendoDropDownTree(new
{
checkboxes = true,
autoClose = false,
placeholder = "Select the regions...",
dataSource = new object[]
{
new
{
text = "Europe", value = "EU", expanded = true,
items = new object[]
{
new { text = "Italy", value = "IT" },
new { text = "Germany", value = "DE" }
}
}
}
});
this.Controls.Add(tree);
Properties
AutoSize
Boolean: Gets or sets whether the control should fill the container. (Default: False)
DefaultSize
Size: The default control size.