Search Results for

    Show / Hide Table of Contents

    Class EntityDescriptorsController

    Inheritance
    object
    ModelViewController
    BaseGridController
    BaseGridControllerAny<EntityDescriptor>
    EntityDescriptorsController
    Implements
    IBaseGridController
    ICollectionExportable
    INewGridItemImplementor<EntityDescriptor>
    ICopyGridItemImplementor<EntityDescriptor>
    IGrid
    IDeleteGridItemImplementor<EntityDescriptor>
    ISearchController
    IModelViewController
    Inherited Members
    BaseGridControllerAny<EntityDescriptor>.CanDelete(EntityDescriptor)
    BaseGridControllerAny<EntityDescriptor>.Clear()
    BaseGridControllerAny<EntityDescriptor>.CloseController()
    BaseGridControllerAny<EntityDescriptor>.Redisplay()
    BaseGridControllerAny<EntityDescriptor>.GetGridController(IBaseGrid<EntityDescriptor>)
    BaseGridControllerAny<EntityDescriptor>.GetInternalDescriptor()
    BaseGridControllerAny<EntityDescriptor>.CanEditRowItem(EntityDescriptor)
    BaseGridControllerAny<EntityDescriptor>.CanEditRowItem(EntityDescriptor, short)
    BaseGridControllerAny<EntityDescriptor>.OnTrackedItemChanged(object, string)
    BaseGridControllerAny<EntityDescriptor>.GetGridSourceItems(IEnumerable<EntityDescriptor>, QueryableExecuterApplyType)
    BaseGridControllerAny<EntityDescriptor>.AlterLoadedItems(IEnumerable<EntityDescriptor>)
    BaseGridControllerAny<EntityDescriptor>.LoadExtendedItem(Type, object)
    BaseGridControllerAny<EntityDescriptor>.InitDisplay()
    BaseGridControllerAny<EntityDescriptor>.ResetColumnsAndGroups(bool)
    BaseGridControllerAny<EntityDescriptor>.DisplayUI()
    BaseGridControllerAny<EntityDescriptor>.GetItemToReselect(object)
    BaseGridControllerAny<EntityDescriptor>.LoadAdditionalColumns()
    BaseGridControllerAny<EntityDescriptor>.Columns()
    BaseGridControllerAny<EntityDescriptor>.AddCol(short, ControlDisplayInfoLight, EntityDescriptor)
    BaseGridControllerAny<EntityDescriptor>.PivotColumns(short)
    BaseGridControllerAny<EntityDescriptor>.UpdateNewItem(EntityDescriptor)
    BaseGridControllerAny<EntityDescriptor>.ApplyGridSettingsToFilter(QueryableExecuter)
    BaseGridControllerAny<EntityDescriptor>.ApplyPaging(QueryableExecuter)
    BaseGridControllerAny<EntityDescriptor>.SetTotalCount(int)
    BaseGridControllerAny<EntityDescriptor>.SetPageIndex(int)
    BaseGridControllerAny<EntityDescriptor>.TrackResults(IEnumerable<EntityDescriptor>)
    BaseGridControllerAny<EntityDescriptor>.AlterColumnInfo(ControlDisplayInfo)
    BaseGridControllerAny<EntityDescriptor>.UpdateColumnFromName(string)
    BaseGridControllerAny<EntityDescriptor>.GetExportableColumnInfo(IEnumerable<ColumnDescriptor>)
    BaseGridControllerAny<EntityDescriptor>.IsZeroColumnColumnVisible(string)
    BaseGridControllerAny<EntityDescriptor>.ToggleZeroColumns()
    BaseGridControllerAny<EntityDescriptor>.UpdateAllZeroColumns()
    BaseGridControllerAny<EntityDescriptor>.UpdateTransferColumnStatus()
    BaseGridControllerAny<EntityDescriptor>.OnSelectedItemsChanged(IEnumerable<EntityDescriptor>)
    BaseGridControllerAny<EntityDescriptor>.GetStandardExtraColumns(string)
    BaseGridControllerAny<EntityDescriptor>.ReApply()
    BaseGridControllerAny<EntityDescriptor>.InitCommands(IList<ViewCommand>)
    BaseGridControllerAny<EntityDescriptor>.GetPublicToggleCommand()
    BaseGridControllerAny<EntityDescriptor>.GetOpenGridCommand()
    BaseGridControllerAny<EntityDescriptor>.GetNewGridCommand()
    BaseGridControllerAny<EntityDescriptor>.GetCopyGridCommand()
    BaseGridControllerAny<EntityDescriptor>.GetDeleteCommand()
    BaseGridControllerAny<EntityDescriptor>.DeleteCommandIsQuickAccess()
    BaseGridControllerAny<EntityDescriptor>.GetUpCommand()
    BaseGridControllerAny<EntityDescriptor>.GetDownCommand()
    BaseGridControllerAny<EntityDescriptor>.MoveItemSequence(object, object)
    BaseGridControllerAny<EntityDescriptor>.OnOpenRowItem(EntityDescriptor)
    BaseGridControllerAny<EntityDescriptor>.GetLookupIDsForNewItems(Func<IBaseEntity, Task>)
    BaseGridControllerAny<EntityDescriptor>.RemoveItems(IEnumerable<EntityDescriptor>)
    BaseGridControllerAny<EntityDescriptor>.AddItem(EntityDescriptor)
    BaseGridControllerAny<EntityDescriptor>.ToggleSearch(bool)
    BaseGridControllerAny<EntityDescriptor>.CollectionType
    BaseGridControllerAny<EntityDescriptor>.Descriptor
    BaseGridControllerAny<EntityDescriptor>.ListenToChanges
    BaseGridControllerAny<EntityDescriptor>.RowPreviewColumns
    BaseGridControllerAny<EntityDescriptor>.GridView
    BaseGridControllerAny<EntityDescriptor>.CurrentGridItems
    BaseGridControllerAny<EntityDescriptor>.CurrentItems
    BaseGridControllerAny<EntityDescriptor>.AutoSelectFirstRow
    BaseGridControllerAny<EntityDescriptor>.AddStandardColumns
    BaseGridControllerAny<EntityDescriptor>.StandardColumnsUniqueGroupKey
    BaseGridControllerAny<EntityDescriptor>.DefaultRowCount
    BaseGridControllerAny<EntityDescriptor>.DefaultOrOverridenRowCount
    BaseGridControllerAny<EntityDescriptor>.UserOverridenPagingAmount
    BaseGridControllerAny<EntityDescriptor>.PagerRequired
    BaseGridControllerAny<EntityDescriptor>.TotalCount
    BaseGridControllerAny<EntityDescriptor>.LimitPagesToTotal
    BaseGridControllerAny<EntityDescriptor>.TotalPageCount
    BaseGridControllerAny<EntityDescriptor>.Sortings
    BaseGridControllerAny<EntityDescriptor>.Filters
    BaseGridControllerAny<EntityDescriptor>.ShowCheckboxForMultiSelect
    BaseGridControllerAny<EntityDescriptor>.TogglerZeroColumn
    BaseGridControllerAny<EntityDescriptor>.TransferColToggler
    BaseGridControllerAny<EntityDescriptor>.ItemRowColorProperty
    BaseGridControllerAny<EntityDescriptor>.CanCreateNew
    BaseGridControllerAny<EntityDescriptor>.SelectedItemForSubViews
    BaseGridControllerAny<EntityDescriptor>.ItemCellDisableCell
    BaseGridControllerAny<EntityDescriptor>.UpdateSubViewsWhenMultipleRowSelectionChanges
    BaseGridControllerAny<EntityDescriptor>.ExcelExportCommand
    BaseGridControllerAny<EntityDescriptor>.NewItemHelper
    BaseGridControllerAny<EntityDescriptor>.CopyItemHelper
    BaseGridControllerAny<EntityDescriptor>.AllowColumnSelection
    BaseGridControllerAny<EntityDescriptor>.AllowPublicToggleCommand
    BaseGridControllerAny<EntityDescriptor>.AllowSearchCommand
    BaseGridControllerAny<EntityDescriptor>.AllowPageSizeCommand
    BaseGridControllerAny<EntityDescriptor>.AllowClearSearchSortFilter
    BaseGridControllerAny<EntityDescriptor>.AllowCopyCommand
    BaseGridControllerAny<EntityDescriptor>.ShowGrouping
    BaseGridControllerAny<EntityDescriptor>.ShowFrozenColumnsSplitter
    BaseGridControllerAny<EntityDescriptor>.ShowVerticalGridLines
    BaseGridControllerAny<EntityDescriptor>.CanUserSelect
    BaseGridControllerAny<EntityDescriptor>.AllowXMLImportExport
    BaseGridControllerAny<EntityDescriptor>.AllowMultipleSelect
    BaseGridControllerAny<EntityDescriptor>.AllowExcelExport
    BaseGridControllerAny<EntityDescriptor>.AllowSequencing
    BaseGridControllerAny<EntityDescriptor>.OpenFromRelatedColumnName
    BaseGridControllerAny<EntityDescriptor>.PopulateNewFromLookupColumnName
    BaseGridControllerAny<EntityDescriptor>.PreventDuplicateLookupIDs
    BaseGridControllerAny<EntityDescriptor>.PopulateNewFromLookupRelationship
    BaseGridControllerAny<EntityDescriptor>.SearchGroups
    BaseGridControllerAny<EntityDescriptor>.SearchElements
    BaseGridController.ClearSearchSortFilter()
    BaseGridController.InitAsync()
    BaseGridController.AddCustomCommand(ICustomCommand)
    BaseGridController.ProcessCustomCommandResult(object)
    BaseGridController.ColumnGroups()
    BaseGridController.GetQueryForExcelResults()
    BaseGridController.GetVisibleColumnNames()
    BaseGridController.AllPossibleSearchColumns()
    BaseGridController.SetOrdering(IEnumerable<QueryableSort>)
    BaseGridController.SetFilters(IEnumerable<QueryableFilter>)
    BaseGridController.SetSearch(string, IEnumerable<string>)
    BaseGridController.SetCreated(bool)
    BaseGridController.BulkUpdateMultipleSelectedItemsOnEdit
    BaseGridController.ComboItemsClear
    BaseGridController.DefaultColumnGroupIndexes
    BaseGridController.ExpandDefaultGroups
    BaseGridController.DefaultFrozenColumnCount
    BaseGridController.SearchColumns
    BaseGridController.Search
    BaseGridController.BaseGridView
    BaseGridController.Created
    BaseGridController.InternalFilter
    BaseGridController.IsSelected
    BaseGridController.ColumnSortings
    BaseGridController.ColumnFilters
    BaseGridController.CustomCommandParam
    BaseGridController.OnlyExportFromQuery
    BaseGridController.LoadPager
    BaseGridController.LoadOrOverridenPager
    BaseGridController.UserOverridenPagingVisible
    BaseGridController.CurrentPageIndex
    ModelViewController.DisplayItem(object)
    ModelViewController.GetCurrentDisplayedItem(object)
    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.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.Controllers
    Assembly: LemonEdge.ClientEntities.dll
    Syntax
    public class EntityDescriptorsController : BaseGridControllerAny<EntityDescriptor>, IBaseGridController, ICollectionExportable, INewGridItemImplementor<EntityDescriptor>, ICopyGridItemImplementor<EntityDescriptor>, IGrid, IDeleteGridItemImplementor<EntityDescriptor>, ISearchController, IModelViewController

    Constructors

    EntityDescriptorsController(IBaseGrid<EntityDescriptor>)

    Declaration
    public EntityDescriptorsController(IBaseGrid<EntityDescriptor> view)
    Parameters
    Type Name Description
    IBaseGrid<EntityDescriptor> view

    Properties

    AllowDeleteCommand

    Indicates the command to allow selected rows to be deleted by the user is included in the InitCommands(IList<ViewCommand>)

    The default is false

    Declaration
    public override bool AllowDeleteCommand { get; }
    Property Value
    Type Description
    bool
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<LemonEdge.API.Descriptors.EntityDescriptor>.AllowDeleteCommand

    AllowNewCommand

    Indicates the command to allow new items to be created by the user is included in the InitCommands(IList<ViewCommand>)

    The default is false if NewItemHelper is equal to null

    Declaration
    public override bool AllowNewCommand { get; }
    Property Value
    Type Description
    bool
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<LemonEdge.API.Descriptors.EntityDescriptor>.AllowNewCommand

    AllowOpenCommand

    Indicates the command to allow selected rows to be opened by the user is included in the InitCommands(IList<ViewCommand>)

    The default is false

    Declaration
    public override bool AllowOpenCommand { get; }
    Property Value
    Type Description
    bool
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<LemonEdge.API.Descriptors.EntityDescriptor>.AllowOpenCommand

    AutoOpenNewItemInTab

    Indicates when creating a new item in the grid that it should automatically be opened in a new tab as well

    The default is true if the type EntityDescriptor is an entity that is not a IsStandingDataEntity

    Declaration
    public override bool AutoOpenNewItemInTab { get; }
    Property Value
    Type Description
    bool
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<LemonEdge.API.Descriptors.EntityDescriptor>.AutoOpenNewItemInTab

    DefaultSearchColumn

    The name of the column to use in the default search of text in the grid

    Declaration
    protected override string DefaultSearchColumn { get; }
    Property Value
    Type Description
    string
    Overrides
    BaseGridController.DefaultSearchColumn

    OnlyExportGrid

    Indicates when performing a stadard data export that the data should only be exported from the grid itself, and not re-run any query

    The default is false

    Declaration
    public override bool OnlyExportGrid { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseGridController.OnlyExportGrid

    Methods

    AlterQuery(QueryableExecuter<EntityDescriptor>)

    Provides the inheriting controller an opportunity to modify the query used to load the data for this IBaseGrid<T>

    Default implementation does nothing unless the type EntityDescriptor is an entity with a property with a SequenceStart, in which case it is ordered by that

    Declaration
    protected override QueryableExecuter<EntityDescriptor> AlterQuery(QueryableExecuter<EntityDescriptor> query)
    Parameters
    Type Name Description
    QueryableExecuter<EntityDescriptor> query

    The query for this grid to always be altered before being executed

    Returns
    Type Description
    QueryableExecuter<EntityDescriptor>

    The query to be used to execute results for this grid

    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<LemonEdge.API.Descriptors.EntityDescriptor>.AlterQuery(LemonEdge.Utils.QueryableExecuter<LemonEdge.API.Descriptors.EntityDescriptor>)

    ColumnNames()

    A list of all the columns to be dynamically created in the IBaseGrid<T>

    This is used by the system to create the actual ControlDisplayInfo classes required from the Columns() property

    You can override this to provide a simple definition of each column (combined with AlterControlInfo(ControlDisplayInfo) for more detail), or you can just override Columns() and ignore this
    Declaration
    protected override IEnumerable<ControlDisplayInfoLight> ColumnNames()
    Returns
    Type Description
    IEnumerable<ControlDisplayInfoLight>

    A list of all the columns to be dynamically created in the IBaseGrid<T>

    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<LemonEdge.API.Descriptors.EntityDescriptor>.ColumnNames()

    GetGridSourceItems()

    A function that must be implemented by inheriting classes that returns the list of items to be displayed against the grid given all active filters, sorting, searches, paging, etc

    Declaration
    public override Task<IEnumerable<EntityDescriptor>> GetGridSourceItems()
    Returns
    Type Description
    Task<IEnumerable<EntityDescriptor>>

    A list of items to be displayed against the grid given all active filters, sorting, searches, paging, etc

    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<LemonEdge.API.Descriptors.EntityDescriptor>.GetGridSourceItems()

    Implements

    IBaseGridController
    ICollectionExportable
    INewGridItemImplementor<T>
    ICopyGridItemImplementor<T>
    IGrid
    IDeleteGridItemImplementor<T>
    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.