Search Results for

    Show / Hide Table of Contents

    Class BaseTreeViewRelatedController<SI, T>

    A base controller for handling the IBaseTreeView<T> view for all entities related to a parent item

    Inheritance
    System.Object
    ModelViewController
    BaseTreeViewController<T>
    BaseTreeViewRelatedController<SI, T>
    Implements
    IModelViewController
    ICollectionExportable
    Inherited Members
    BaseTreeViewController<T>.GetTreeController(IBaseTreeView<T>)
    BaseTreeViewController<T>.TreeView
    BaseTreeViewController<T>.Descriptor
    BaseTreeViewController<T>.Roots
    BaseTreeViewController<T>.InitCommands(IList<ViewCommand>)
    BaseTreeViewController<T>.Clear()
    BaseTreeViewController<T>.DisplayUI()
    BaseTreeViewController<T>.LoadItems()
    BaseTreeViewController<T>.WrapAsTreeNodes(IEnumerable<T>)
    BaseTreeViewController<T>.CreateWrapper(T, TreeNode<T>)
    BaseTreeViewController<T>.SelectedItemForSubViews
    BaseTreeViewController<T>.OnSelectionChanged(Object, EventArgs)
    BaseTreeViewController<T>.AlterQuery(QueryableExecuter<T>)
    BaseTreeViewController<T>.GetParentIDPropertyName
    BaseTreeViewController<T>.GetTreeNodeLabelPropertyName
    BaseTreeViewController<T>.OpenItem(T)
    BaseTreeViewController<T>.CreateNewItem()
    BaseTreeViewController<T>.CommandNew
    BaseTreeViewController<T>.CommandNewAllow
    BaseTreeViewController<T>.CommandNewCanCreate
    BaseTreeViewController<T>.CommandOpenAllow
    BaseTreeViewController<T>.CommandOpen
    BaseTreeViewController<T>.CommandDelete
    BaseTreeViewController<T>.CommandDeleteAllow
    BaseTreeViewController<T>.CommandDeleteCanDelete
    BaseTreeViewController<T>.OnDeleteItem(T)
    BaseTreeViewController<T>.OpenFromRelatedColumnName
    BaseTreeViewController<T>.CommandNewAllowMultipleRoots
    BaseTreeViewController<T>.AutoExpandAll
    BaseTreeViewController<T>.CollectionType
    BaseTreeViewController<T>.OnlyExportGrid
    BaseTreeViewController<T>.OnlyExportFromQuery
    BaseTreeViewController<T>.PagerRequired
    BaseTreeViewController<T>.CurrentGridItems
    BaseTreeViewController<T>.GetExportableColumnInfo(IEnumerable<ColumnDescriptor>)
    BaseTreeViewController<T>.GetVisibleColumnNames()
    BaseTreeViewController<T>.GetQueryForExcelResults()
    BaseTreeViewController<T>.ColumnGroups()
    ModelViewController.CurrentDisplayedItem
    ModelViewController.CanWrite
    ModelViewController.TrackItemChanges
    ModelViewController.CheckIsLockedForCanWrite
    ModelViewController.View
    ModelViewController.InitAsync()
    ModelViewController.OnTrackedItemChanged(Object, String)
    ModelViewController.DisplayItem(Object)
    ModelViewController.ShouldDisplayItem(Object)
    ModelViewController.DisplayIfNull
    ModelViewController.Redisplay()
    ModelViewController.RemoveHandlers(Object)
    ModelViewController.AddHandlers(Object)
    ModelViewController.CloseController()
    ModelViewController.RemoveCommand(ViewCommand)
    ModelViewController.RemoveCommands<OFType>()
    ModelViewController.InsertCommand(ViewCommand, Int32)
    ModelViewController.InsertCommand(ViewCommand, ViewCommand, ViewCommand)
    ModelViewController.Commands
    ModelViewController.UpdateAllCommands()
    ModelViewController.ContextHelpURL
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.Client.Core.Views.Core
    Assembly: ClientCore.dll
    Syntax
    public abstract class BaseTreeViewRelatedController<SI, T> : BaseTreeViewController<T>, IModelViewController, ICollectionExportable where SI : IBaseEntity where T : IBaseEntity
    Type Parameters
    Name Description
    SI

    The type of parent item that all entities in the tree view are related to

    T

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

    Constructors

    BaseTreeViewRelatedController(IBaseTreeView<T>)

    Creates a new BaseTreeViewRelatedController for the specified instance of a tree view

    Declaration
    public BaseTreeViewRelatedController(IBaseTreeView<T> view)
    Parameters
    Type Name Description
    IBaseTreeView<T> view

    The instance of the tree view in the client application

    Properties

    GetRelationPropName

    The name of the property on the entity type T that holds the value to the instance of the parent item of type SI in this tree view

    Declaration
    protected abstract string GetRelationPropName { get; }
    Property Value
    Type Description
    System.String

    SingleItem

    The parent single item that all entities in the tree view are related to

    Declaration
    public SI SingleItem { get; }
    Property Value
    Type Description
    SI

    Methods

    GetQuery()

    Overrides the query to also ensure it only loads entities of type T that are related to the parent SI item

    Declaration
    protected override QueryableExecuter<T> GetQuery()
    Returns
    Type Description
    QueryableExecuter<T>
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseTreeViewController<T>.GetQuery()

    UpdateNewItem(T)

    Ensures that any new item is also automatically related to the parent single item of type SI

    Declaration
    protected override void UpdateNewItem(T newItem)
    Parameters
    Type Name Description
    T newItem

    The newly created entity in the tree view

    Overrides
    LemonEdge.Client.Core.Views.Core.BaseTreeViewController<T>.UpdateNewItem(T)

    Implements

    IModelViewController
    ICollectionExportable

    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.