Search Results for

    Show / Hide Table of Contents

    Class AllItemsWithLabelController<T>

    A base grid controller that works against all entity types that have a LabelColumn property set

    That column is set as the one visible column in the grid. This can be used as a default grid for entities with labels that have no other controller views in code or config

    Inheritance
    object
    ModelViewController
    BaseGridController
    BaseGridControllerAny<T>
    BaseGridController<T>
    AllItemsWithLabelController<T>
    Implements
    IBaseGridController
    ICollectionExportable
    INewGridItemImplementor<T>
    ICopyGridItemImplementor<T>
    IGrid
    IDeleteGridItemImplementor<T>
    ISearchController
    IModelViewController
    Inherited Members
    BaseGridController<T>.LoadExtendedItem(Type, object)
    BaseGridController<T>.GetGridSourceItems()
    BaseGridController<T>.LoadExtendedData(IEnumerable<T>)
    BaseGridController<T>.ConvertParameterItemsFilterToItems(IEnumerable<IBaseEntity>)
    BaseGridController<T>.GetInternalDescriptor()
    BaseGridController<T>.GetCurrentQuery()
    BaseGridController<T>.GetQueryForExcelResults()
    BaseGridController<T>.GetCreationQuery()
    BaseGridController<T>.AddParameterIDFilterToQuery(QueryableExecuter<T>, IEnumerable<Guid>)
    BaseGridController<T>.AddParameterFilterToQuery(QueryableExecuter<T>, QueryableFilter)
    BaseGridController<T>.GetOpenGridCommand()
    BaseGridController<T>.GetCopyGridCommand()
    BaseGridController<T>.OnOpenRowItem(T)
    BaseGridController<T>.ProcessCustomCommandResult(object)
    BaseGridController<T>.AllowIDFilter
    BaseGridController<T>.NewItemHelper
    BaseGridController<T>.CopyItemHelper
    BaseGridController<T>.AllowOpenCommand
    BaseGridController<T>.OpenInSameContext
    BaseGridController<T>.HasGlobalFilter
    BaseGridControllerAny<T>.CanDelete(T)
    BaseGridControllerAny<T>.Clear()
    BaseGridControllerAny<T>.CloseController()
    BaseGridControllerAny<T>.Redisplay()
    BaseGridControllerAny<T>.GetGridController(IBaseGrid<T>)
    BaseGridControllerAny<T>.CanEditRowItem(T)
    BaseGridControllerAny<T>.CanEditRowItem(T, short)
    BaseGridControllerAny<T>.OnTrackedItemChanged(object, string)
    BaseGridControllerAny<T>.GetGridSourceItems(IEnumerable<T>, QueryableExecuterApplyType)
    BaseGridControllerAny<T>.AlterLoadedItems(IEnumerable<T>)
    BaseGridControllerAny<T>.InitDisplay()
    BaseGridControllerAny<T>.ResetColumnsAndGroups(bool)
    BaseGridControllerAny<T>.DisplayUI()
    BaseGridControllerAny<T>.GetItemToReselect(object)
    BaseGridControllerAny<T>.LoadAdditionalColumns()
    BaseGridControllerAny<T>.Columns()
    BaseGridControllerAny<T>.AddCol(short, ControlDisplayInfoLight, EntityDescriptor)
    BaseGridControllerAny<T>.PivotColumns(short)
    BaseGridControllerAny<T>.UpdateNewItem(T)
    BaseGridControllerAny<T>.ApplyGridSettingsToFilter(QueryableExecuter)
    BaseGridControllerAny<T>.ApplyPaging(QueryableExecuter)
    BaseGridControllerAny<T>.SetTotalCount(int)
    BaseGridControllerAny<T>.SetPageIndex(int)
    BaseGridControllerAny<T>.TrackResults(IEnumerable<T>)
    BaseGridControllerAny<T>.AlterColumnInfo(ControlDisplayInfo)
    BaseGridControllerAny<T>.UpdateColumnFromName(string)
    BaseGridControllerAny<T>.GetExportableColumnInfo(IEnumerable<ColumnDescriptor>)
    BaseGridControllerAny<T>.IsZeroColumnColumnVisible(string)
    BaseGridControllerAny<T>.ToggleZeroColumns()
    BaseGridControllerAny<T>.UpdateAllZeroColumns()
    BaseGridControllerAny<T>.UpdateTransferColumnStatus()
    BaseGridControllerAny<T>.OnSelectedItemsChanged(IEnumerable<T>)
    BaseGridControllerAny<T>.GetStandardExtraColumns(string)
    BaseGridControllerAny<T>.ReApply()
    BaseGridControllerAny<T>.InitCommands(IList<ViewCommand>)
    BaseGridControllerAny<T>.GetPublicToggleCommand()
    BaseGridControllerAny<T>.GetNewGridCommand()
    BaseGridControllerAny<T>.GetDeleteCommand()
    BaseGridControllerAny<T>.DeleteCommandIsQuickAccess()
    BaseGridControllerAny<T>.GetUpCommand()
    BaseGridControllerAny<T>.GetDownCommand()
    BaseGridControllerAny<T>.MoveItemSequence(object, object)
    BaseGridControllerAny<T>.GetLookupIDsForNewItems(Func<IBaseEntity, Task>)
    BaseGridControllerAny<T>.RemoveItems(IEnumerable<T>)
    BaseGridControllerAny<T>.AddItem(T)
    BaseGridControllerAny<T>.ToggleSearch(bool)
    BaseGridControllerAny<T>.CollectionType
    BaseGridControllerAny<T>.Descriptor
    BaseGridControllerAny<T>.ListenToChanges
    BaseGridControllerAny<T>.RowPreviewColumns
    BaseGridControllerAny<T>.GridView
    BaseGridControllerAny<T>.CurrentGridItems
    BaseGridControllerAny<T>.CurrentItems
    BaseGridControllerAny<T>.AutoSelectFirstRow
    BaseGridControllerAny<T>.AddStandardColumns
    BaseGridControllerAny<T>.StandardColumnsUniqueGroupKey
    BaseGridControllerAny<T>.DefaultRowCount
    BaseGridControllerAny<T>.DefaultOrOverridenRowCount
    BaseGridControllerAny<T>.UserOverridenPagingAmount
    BaseGridControllerAny<T>.PagerRequired
    BaseGridControllerAny<T>.TotalCount
    BaseGridControllerAny<T>.LimitPagesToTotal
    BaseGridControllerAny<T>.TotalPageCount
    BaseGridControllerAny<T>.Sortings
    BaseGridControllerAny<T>.Filters
    BaseGridControllerAny<T>.ShowCheckboxForMultiSelect
    BaseGridControllerAny<T>.TogglerZeroColumn
    BaseGridControllerAny<T>.TransferColToggler
    BaseGridControllerAny<T>.ItemRowColorProperty
    BaseGridControllerAny<T>.CanCreateNew
    BaseGridControllerAny<T>.SelectedItemForSubViews
    BaseGridControllerAny<T>.ItemCellDisableCell
    BaseGridControllerAny<T>.UpdateSubViewsWhenMultipleRowSelectionChanges
    BaseGridControllerAny<T>.ExcelExportCommand
    BaseGridControllerAny<T>.AllowColumnSelection
    BaseGridControllerAny<T>.AllowPublicToggleCommand
    BaseGridControllerAny<T>.AllowSearchCommand
    BaseGridControllerAny<T>.AllowPageSizeCommand
    BaseGridControllerAny<T>.AllowClearSearchSortFilter
    BaseGridControllerAny<T>.ShowGrouping
    BaseGridControllerAny<T>.ShowFrozenColumnsSplitter
    BaseGridControllerAny<T>.ShowVerticalGridLines
    BaseGridControllerAny<T>.CanUserSelect
    BaseGridControllerAny<T>.AllowXMLImportExport
    BaseGridControllerAny<T>.AllowMultipleSelect
    BaseGridControllerAny<T>.AllowExcelExport
    BaseGridControllerAny<T>.OpenFromRelatedColumnName
    BaseGridControllerAny<T>.PopulateNewFromLookupColumnName
    BaseGridControllerAny<T>.PreventDuplicateLookupIDs
    BaseGridControllerAny<T>.PopulateNewFromLookupRelationship
    BaseGridControllerAny<T>.SearchGroups
    BaseGridControllerAny<T>.SearchElements
    BaseGridController.ClearSearchSortFilter()
    BaseGridController.InitAsync()
    BaseGridController.AddCustomCommand(ICustomCommand)
    BaseGridController.ColumnGroups()
    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.OnlyExportGrid
    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.ClientCore.dll
    Syntax
    public class AllItemsWithLabelController<T> : BaseGridController<T>, IBaseGridController, ICollectionExportable, INewGridItemImplementor<T>, ICopyGridItemImplementor<T>, IGrid, IDeleteGridItemImplementor<T>, ISearchController, IModelViewController where T : IBaseEntity
    Type Parameters
    Name Description
    T

    The entity type to be displayed with this grid controller

    Constructors

    AllItemsWithLabelController(IBaseGrid<T>)

    Creates a new AllItemsWithLabelController grid controller

    Declaration
    public AllItemsWithLabelController(IBaseGrid<T> view)
    Parameters
    Type Name Description
    IBaseGrid<T> view

    The IBaseGrid view implementation using the UI components of the client application

    Properties

    AllowCopyCommand

    False - does not allow copying of entities automatically

    Declaration
    public override bool AllowCopyCommand { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseGridController<T>.AllowCopyCommand

    AllowDeleteCommand

    False - does not allow deleting of entities automatically

    Declaration
    public override bool AllowDeleteCommand { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseGridController<T>.AllowDeleteCommand

    AllowNewCommand

    False - does not allow the creation of new entities automatically

    Declaration
    public override bool AllowNewCommand { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseGridController<T>.AllowNewCommand

    AllowSequencing

    False - does not allow the movement of entities up/down the grid automatically

    Declaration
    public override bool AllowSequencing { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseGridControllerAny<T>.AllowSequencing

    AutoOpenNewItemInTab

    Returns true, as a new item can not be edited in this grid alone, it only has the one label column

    Declaration
    public override bool AutoOpenNewItemInTab { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseGridControllerAny<T>.AutoOpenNewItemInTab

    DefaultSearchColumn

    Sets the LabelColumn as the default column to search

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

    Methods

    AlterQuery(QueryableExecuter<T>)

    Alters the query of all entities of type T to order by the label column

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

    The query for displaying all the entities of type T in the grid

    Returns
    Type Description
    QueryableExecuter<T>

    The query for displaying all the entities of type T in the grid

    Overrides
    BaseGridControllerAny<T>.AlterQuery(QueryableExecuter<T>)

    ColumnNames()

    Adds the LabelColumn as a text read-only column to the grid

    Declaration
    protected override IEnumerable<ControlDisplayInfoLight> ColumnNames()
    Returns
    Type Description
    IEnumerable<ControlDisplayInfoLight>

    The controls to be displayed as columns for this grid

    Overrides
    BaseGridControllerAny<T>.ColumnNames()

    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.