Search Results for

    Show / Hide Table of Contents

    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
    IModelView.Displayer
    IModelView.Descriptor
    IModelView.Controller
    IModelView.ClearUI()
    IModelView.ReActivateView()
    IModelView.ValidateUI()
    IItemSelector.SelectionMode
    IItemSelector.SelectionChanged
    IItemSelector.SelectedObjects
    Namespace: LemonEdge.Client.Core.Views.Core
    Assembly: ClientCore.dll
    Syntax
    public interface IBaseTreeView<T> : IModelView, IItemSelector where T : IBaseEntity
    Type Parameters
    Name Description
    T

    The treeview works with any entity type T that has a parent relationship to itself

    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, 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, IEnumerable<TreeNode<T>> rootNodes)
    Parameters
    Type Name Description
    System.String labelBinding

    The property on the type T which should be used as a label for each node in the tree

    System.Collections.Generic.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

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.