Skip to main content

ejDropDownTree

Namespace: Wisej.Web.Ext.Syncfusion

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

The DropDownTree control provides a list of hierarchical data to choose an item from the list. It can including other HTML elements such as images, textboxes, check box, radio buttons, and so on.

public class ejDropDownTree : ejBase

Constructors​

Instance member ejDropDownTree()​

Constructs a new instance of the ejDropDownTree class.

Example:

The following example creates the drop down tree and binds it to a self-referencing list through the options.

var dropDownTree = new ejDropDownTree();
dropDownTree.Options.treeViewSettings = new
{
fields = new { dataSource = departments, id = "Id", parentId = "ParentId", text = "Name", value = "Id" }
};
dropDownTree.Location = new Point(20, 20);
this.Controls.Add(dropDownTree);

Instance member ejDropDownTree(options)​

Constructs a new instance of the ejDropDownTree class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a drop down tree bound to a self-referencing list that shows a watermark.

var dropDownTree = new ejDropDownTree(new
{
watermarkText = "Select a department",
treeViewSettings = new
{
fields = new { dataSource = departments, id = "Id", parentId = "ParentId", text = "Name", value = "Id" }
}
});
this.Controls.Add(dropDownTree);

Implements​