Skip to main content

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.

public class kendoDropDownTree : kendoBase

Constructors​

Instance member 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);

Instance member kendoDropDownTree(options)​

Constructs a new instance of the kendoDropDownTree class.

NameTypeDescription
optionsObjectInitial 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​

Instance member AutoSize​

Boolean: Gets or sets whether the control should fill the container. (Default: False)

Protected member DefaultSize​

Size: The default control size.

Implements​