Interface IBaseTreeView<T>
The standard tree view used by the BaseTreeViewController<T> for displaying a heirarchical set of data as a tree view
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: LemonEdge.ClientCore.dll
Syntax
[ViewDescriptor(typeof(BaseEntityDefaultTreeViewInstanceEnumerator))]
public interface IBaseTreeView<T> : IModelView, IItemSelector
Type Parameters
Name | Description |
---|---|
T | The treeview works with any entity type |
Properties
SelectedItem
The currently selected tree node
Declaration
TreeNode<T> SelectedItem { get; }
Property Value
Type | Description |
---|---|
TreeNode<T> |
Methods
DeleteRootNode(TreeNode<T>)
Removes the specified root tree node from the tree view
To remove a child tree node from the tree, simply remove it from the parent treenode and call RedisplayNode(TreeNode<T>) with the parent tree node which will update the display
Declaration
void DeleteRootNode(TreeNode<T> node)
Parameters
Type | Name | Description |
---|---|---|
TreeNode<T> | node | The node to be removed from the root of the tree view |
DisplayItem(string, string, IEnumerable<TreeNode<T>>)
Displays the specified data as root nodes all of which contain child nodes expressed in the tree view
Declaration
void DisplayItem(string labelBinding, string colorBinding, IEnumerable<TreeNode<T>> rootNodes)
Parameters
Type | Name | Description |
---|---|---|
string | labelBinding | The property on the type |
string | colorBinding | |
IEnumerable<TreeNode<T>> | rootNodes | The list of top level nodes to display initially in the tree view |
RedisplayNode(TreeNode<T>)
Forces the tree view to collapse all sub child nodes, and to reload all child nodes redisplaying them
Declaration
void RedisplayNode(TreeNode<T> node)
Parameters
Type | Name | Description |
---|---|---|
TreeNode<T> | node | The node in the tree to collapse, and reload the child nodes of |
SelectItem(TreeNode<T>)
Makes the tree view in the client ui select the specfied tree node
Declaration
void SelectItem(TreeNode<T> item)
Parameters
Type | Name | Description |
---|---|---|
TreeNode<T> | item | The node in the tree to highlight and select |