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
    object
    ModelViewController
    BaseTreeViewAnyController<T>
    BaseTreeViewController<T>
    BaseTreeViewRelatedController<SI, T>
    DatasetQueryableItemsController
    DatasetWhereFiltersController
    GLRollupHeadersController
    VennSetWhereFiltersController
    Implements
    ICollectionExportable
    ISearchController
    IModelViewController
    Inherited Members
    BaseTreeViewController<T>.InitCommands(IList<ViewCommand>)
    BaseTreeViewController<T>.AlterQuery(QueryableExecuter<T>)
    BaseTreeViewController<T>.GetIDValue(T)
    BaseTreeViewController<T>.CreateNewItem()
    BaseTreeViewController<T>.OnItemMovedUpOrDown(T, bool)
    BaseTreeViewController<T>.InsertAndSelectNewItem(T)
    BaseTreeViewController<T>.CreateCopiedNode(TreeNode<T>, TreeNode<T>)
    BaseTreeViewController<T>.LoadItems()
    BaseTreeViewController<T>.GetQueryForExcelResults()
    BaseTreeViewController<T>.CommandNewAllow
    BaseTreeViewController<T>.CommandDeleteAllow
    BaseTreeViewController<T>.CommandNewType
    BaseTreeViewController<T>.CommandNew
    BaseTreeViewController<T>.CommandCopy
    BaseTreeViewController<T>.CommandOpen
    BaseTreeViewController<T>.CommandDelete
    BaseTreeViewController<T>.AutoPromptForLabelOnNew
    BaseTreeViewAnyController<T>._descriptor
    BaseTreeViewAnyController<T>._items
    BaseTreeViewAnyController<T>._rootNodes
    BaseTreeViewAnyController<T>.HasLazyChildrenToLoad(TreeNode<T>)
    BaseTreeViewAnyController<T>.CanMoveToRoot(T)
    BaseTreeViewAnyController<T>.CanMoveAsChildOfItem(T, T)
    BaseTreeViewAnyController<T>.OnNodeMoved(TreeNode<T>, TreeNode<T>, TreeNode<T>)
    BaseTreeViewAnyController<T>.LoadDataForCopyingNode(TreeNode<T>)
    BaseTreeViewAnyController<T>.UpdateRootCopiedNode(TreeNode<T>, TreeNode<T>)
    BaseTreeViewAnyController<T>.GetTreeController(IBaseTreeView<T>)
    BaseTreeViewAnyController<T>.Clear()
    BaseTreeViewAnyController<T>.CloseController()
    BaseTreeViewAnyController<T>.DisplayUI()
    BaseTreeViewAnyController<T>.LazyLoadChildren(TreeNode<T>)
    BaseTreeViewAnyController<T>.WrapAsTreeNodes(IEnumerable<T>)
    BaseTreeViewAnyController<T>.CreateWrapper(T, TreeNode<T>)
    BaseTreeViewAnyController<T>.OnSelectionChanged(object, EventArgs)
    BaseTreeViewAnyController<T>.PromptForItemLabel(T)
    BaseTreeViewAnyController<T>.OpenItem(T)
    BaseTreeViewAnyController<T>.OnDeleteItem(T)
    BaseTreeViewAnyController<T>.WrapAsTreeNodes(TreeNode<T>, IEnumerable<T>)
    BaseTreeViewAnyController<T>.ToggleSearch(bool)
    BaseTreeViewAnyController<T>.SetSearch(string, IEnumerable<string>)
    BaseTreeViewAnyController<T>.GetExportableColumnInfo(IEnumerable<ColumnDescriptor>)
    BaseTreeViewAnyController<T>.GetVisibleColumnNames()
    BaseTreeViewAnyController<T>.ColumnGroups()
    BaseTreeViewAnyController<T>.IgnoreEvents
    BaseTreeViewAnyController<T>.TreeView
    BaseTreeViewAnyController<T>.Descriptor
    BaseTreeViewAnyController<T>.Roots
    BaseTreeViewAnyController<T>.SelectedItemForSubViews
    BaseTreeViewAnyController<T>.GetParentIDPropertyName
    BaseTreeViewAnyController<T>.GetDefaultOrderPropertyName
    BaseTreeViewAnyController<T>.GetDefaultOrder
    BaseTreeViewAnyController<T>.GetTreeNodeLabelPropertyName
    BaseTreeViewAnyController<T>.GetTreeNodeColorPropertyName
    BaseTreeViewAnyController<T>.GetTreeNodeIconPropertyName
    BaseTreeViewAnyController<T>.GetTreeNodeTooltipPropertyName
    BaseTreeViewAnyController<T>.LoadedItems
    BaseTreeViewAnyController<T>.CommandNewCanCreate
    BaseTreeViewAnyController<T>.CommandCopyAllow
    BaseTreeViewAnyController<T>.CommandOpenAllow
    BaseTreeViewAnyController<T>.CommandDeleteCanDelete
    BaseTreeViewAnyController<T>.CommandRenameAllow
    BaseTreeViewAnyController<T>.RenameHasOtherProperties
    BaseTreeViewAnyController<T>.CommandAllowSearch
    BaseTreeViewAnyController<T>.OpenFromRelatedColumnName
    BaseTreeViewAnyController<T>.CommandNewAllowMultipleRoots
    BaseTreeViewAnyController<T>.AutoExpandAll
    BaseTreeViewAnyController<T>.AllowXMLImportExport
    BaseTreeViewAnyController<T>.ForceSubViewUpdateOnChangeEvenIfSame
    BaseTreeViewAnyController<T>.SearchColumns
    BaseTreeViewAnyController<T>.SearchGroups
    BaseTreeViewAnyController<T>.SearchElements
    BaseTreeViewAnyController<T>.CollectionType
    BaseTreeViewAnyController<T>.OnlyExportGrid
    BaseTreeViewAnyController<T>.OnlyExportFromQuery
    BaseTreeViewAnyController<T>.PagerRequired
    BaseTreeViewAnyController<T>.CurrentGridItems
    ModelViewController.InitAsync()
    ModelViewController.DisplayItem(object)
    ModelViewController.GetCurrentDisplayedItem(object)
    ModelViewController.Redisplay()
    ModelViewController.OnTrackedItemChanged(object, string)
    ModelViewController.GetCanWrite(object)
    ModelViewController.ShouldDisplayItem(object)
    ModelViewController.RemoveHandlers(object)
    ModelViewController.AddHandlers(object)
    ModelViewController.RemoveCommand(ViewCommand)
    ModelViewController.RemoveCommands<TOfType>()
    ModelViewController.InsertCommand(ViewCommand, int)
    ModelViewController.InsertCommand(ViewCommand, ViewCommand, ViewCommand)
    ModelViewController.UpdateAllCommands()
    ModelViewController.GetNestedViews()
    ModelViewController.RootController
    ModelViewController.ServiceContext
    ModelViewController.UIContext
    ModelViewController.CanWrite
    ModelViewController.ListenToChanges
    ModelViewController.TrackChanges
    ModelViewController.CheckIsLockedForCanWrite
    ModelViewController.DisplayIfNull
    ModelViewController.CurrentDisplayedItem
    ModelViewController.View
    ModelViewController.Commands
    ModelViewController.ContextHelpURL
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Views.Core
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public abstract class BaseTreeViewRelatedController<SI, T> : BaseTreeViewController<T>, ICollectionExportable, ISearchController, IModelViewController 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
    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
    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 Task UpdateNewItem(T newItem)
    Parameters
    Type Name Description
    T newItem

    The newly created entity in the tree view

    Returns
    Type Description
    Task
    Overrides
    BaseTreeViewController<T>.UpdateNewItem(T)

    Implements

    ICollectionExportable
    ISearchController
    IModelViewController

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.