Search Results for

    Show / Hide Table of Contents

    Class BaseGridController<T>

    The base generic grid controller which works with the IBaseGrid<T> view and displays an entity type as rows in the grid

    This is the main base controller for creating grids, and dynamically creating their columns, for any entity in the system. The BaseGridControllerAny<T> is used objects that are not entities inheriting from IBaseEntity

    Both this controller and the BaseDefaultSingleViewController<T> view have a similar mechanism for creating controls dynamically within the UI
    Inheritance
    object
    ModelViewController
    BaseGridController
    BaseGridControllerAny<T>
    BaseGridController<T>
    ApiConnectionsController
    AccountMaintenanceItemsController
    ActionTriggersController
    AddInModulesController
    AddInsOnlyController
    AlgorithmRunsController
    AlgorithmsController
    AllDocumentsController
    AllGLClassificationNamesController
    AllItemTasksController
    AllItemsWithLabelController<T>
    AllocationMappingsController
    AllocationMethodsController
    AllocationPathsController
    AllocationRulesController
    BlendTransactionsController
    BlendingTransactionsController
    CanvasesController
    ChartOfAccountsController
    ChartsController
    CodeSnippetsController
    CollateralTypesController
    CommentsAllController
    CoverageTypesController
    CurrenciesController
    CustomCommandsController
    CustomImagesController
    CustomListsController
    CustomLookupQueriesController
    CustomObjectsController
    CustomValidationsController
    CustomViewsController
    DataMappingsController
    DataSourceTypesController
    DataTemplatesController
    DatasetShorcutsController
    DatasetsController
    DefaultObjectsController
    DefaultValuesController
    DefaultWatchersController
    DocumentCategoriesController
    DomicilesController
    EntitySetsController<T>
    EnttiyAccountsController
    ExchangeRateCategoriesController
    ExchangeRatesController
    GLAccountsOnlyController
    GLClassificationsController
    GLPostingsController
    GLRollups
    GroupedTransactionsController
    HolidayTypesController
    ImportDefinitionsController
    IndustriesController
    InstrumentCapitalAccountDataSettingsController
    InstrumentSetTypesController
    InstrumentSetsController
    InstrumentsController<T>
    ItemTaskTypesController
    LayoutsController
    LedgersController
    ObfuscatedFieldsController
    ObjectEntitiesController<T>
    ObjectEntityTypesController
    PeriodClosingsController
    PeriodEndTransformationsController
    PeriodEndsController
    PivotsController
    QueryRunnersController
    QuestionTypesController
    RateTypesController
    ReconciliationsController
    ReportsController
    RolesController
    SQLAssembliesController
    SQLWrappersController
    SafesController
    ServerTasksController
    SplitTransactionsController
    StepChangesController
    TagsController
    TeamsController
    TransactionAggregatorsController
    TransactionCodeValuesAllController
    TransactionCodesController
    TransactionLinksController
    TransactionMatchersController
    TransactionTypeValuesOnlyController
    TransactionTypesController
    TransactionsController
    TransfersController
    UsersController
    VennSetsController
    WatcherTypesController
    BaseGridAnyRelatedCollectionController<T>
    BaseGridCustomController<T>
    BaseGridRelatedCollectionController<TSingleItem, TCollection>
    CustomGridsController
    CustomTreesController
    Implements
    IBaseGridController
    ICollectionExportable
    INewGridItemImplementor<T>
    ICopyGridItemImplementor<T>
    IGrid
    IDeleteGridItemImplementor<T>
    ISearchController
    IModelViewController
    Inherited Members
    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>.ColumnNames()
    BaseGridControllerAny<T>.PivotColumns(short)
    BaseGridControllerAny<T>.UpdateNewItem(T)
    BaseGridControllerAny<T>.AlterQuery(QueryableExecuter<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>.AllowSequencing
    BaseGridControllerAny<T>.AutoOpenNewItemInTab
    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.DefaultSearchColumn
    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.Core
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public abstract class BaseGridController<T> : BaseGridControllerAny<T>, IBaseGridController, ICollectionExportable, INewGridItemImplementor<T>, ICopyGridItemImplementor<T>, IGrid, IDeleteGridItemImplementor<T>, ISearchController, IModelViewController where T : IBaseEntity
    Type Parameters
    Name Description
    T

    An entity type inheriting from IBaseEntity

    Constructors

    BaseGridController(IBaseGrid<T>)

    Creates a new default grid view controller with the specified instance of a default grid view

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

    The instance of the default grid view in the client application

    Properties

    AllowCopyCommand

    Indicates that by default selected entities can be copied by the user with the copy command

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

    AllowDeleteCommand

    Indicates that by default selected entities can be deleted by the user with the delete command

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

    AllowIDFilter

    If true indicates that the results of this grid can be altered by parameters of type DisplayableItemDescriptorForCollectionParams against the ItemParams

    The default is true, but is overridden for grids that display sub sets of information related to other items

    Declaration
    protected virtual bool AllowIDFilter { get; }
    Property Value
    Type Description
    bool

    AllowNewCommand

    Indicates that by default entities can be created by the user with the new command

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

    AllowOpenCommand

    Indicates that by default selected entities can be opened by the user with the open command

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

    CopyItemHelper

    Returns a standard CopyItemDescriptor<T><T> for the entity type T

    Declaration
    protected override ICopyItemHelper<T> CopyItemHelper { get; }
    Property Value
    Type Description
    ICopyItemHelper<T>
    Overrides
    BaseGridControllerAny<T>.CopyItemHelper

    HasGlobalFilter

    Declaration
    public bool HasGlobalFilter { get; }
    Property Value
    Type Description
    bool

    NewItemHelper

    Returns a standard NewItemDescriptor<T> for the entity type T

    Declaration
    protected override INewItemHelper<T> NewItemHelper { get; }
    Property Value
    Type Description
    INewItemHelper<T>
    Overrides
    BaseGridControllerAny<T>.NewItemHelper

    OpenInSameContext

    Indicates that opening an item should always open in the same context. By default this is false

    Declaration
    public virtual bool OpenInSameContext { get; }
    Property Value
    Type Description
    bool

    Methods

    AddParameterFilterToQuery(QueryableExecuter<T>, QueryableFilter)

    Declaration
    protected virtual QueryableExecuter<T> AddParameterFilterToQuery(QueryableExecuter<T> query, QueryableFilter filter)
    Parameters
    Type Name Description
    QueryableExecuter<T> query
    QueryableFilter filter
    Returns
    Type Description
    QueryableExecuter<T>

    AddParameterIDFilterToQuery(QueryableExecuter<T>, IEnumerable<Guid>)

    Declaration
    protected virtual QueryableExecuter<T> AddParameterIDFilterToQuery(QueryableExecuter<T> query, IEnumerable<Guid> ids)
    Parameters
    Type Name Description
    QueryableExecuter<T> query
    IEnumerable<Guid> ids
    Returns
    Type Description
    QueryableExecuter<T>

    ConvertParameterItemsFilterToItems(IEnumerable<IBaseEntity>)

    Declaration
    protected virtual IEnumerable<T> ConvertParameterItemsFilterToItems(IEnumerable<IBaseEntity> items)
    Parameters
    Type Name Description
    IEnumerable<IBaseEntity> items
    Returns
    Type Description
    IEnumerable<T>

    GetCopyGridCommand()

    Provdies the copy command required to open any entity in the system

    Declaration
    protected override ViewCommand GetCopyGridCommand()
    Returns
    Type Description
    ViewCommand

    The CopyGridItem<T> command

    Overrides
    BaseGridControllerAny<T>.GetCopyGridCommand()

    GetCreationQuery()

    Returns the main initial query to return all entities of type T

    Includes any filtering requested from parameters of type DisplayableItemDescriptorForCollectionParams against the ItemParams if AllowIDFilter is true

    Also applies any paging required
    Declaration
    protected virtual QueryableExecuter<T> GetCreationQuery()
    Returns
    Type Description
    QueryableExecuter<T>

    The main initial query to return all entities of type T

    GetCurrentQuery()

    Returns the GetCreationQuery() for this entity type, with the AlterQuery(QueryableExecuter<T>) and ApplyGridSettingsToFilter(QueryableExecuter) applied

    Declaration
    public QueryableExecuter<T> GetCurrentQuery()
    Returns
    Type Description
    QueryableExecuter<T>

    The GetCreationQuery() for this entity type, with the AlterQuery(QueryableExecuter<T>) and ApplyGridSettingsToFilter(QueryableExecuter) applied

    GetGridSourceItems()

    Executes the query (GetCurrentQuery()) for the entities required in this grid, sets the total count (as it is different due to paging), and returns the results

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

    The result of executing the GetCurrentQuery() to return all the entities that should be displayed in this grid

    Overrides
    BaseGridControllerAny<T>.GetGridSourceItems()

    GetInternalDescriptor()

    Returns the descriptor for the entity type T

    Declaration
    protected override EntityDescriptor GetInternalDescriptor()
    Returns
    Type Description
    EntityDescriptor

    The descriptor for the entity type T

    Overrides
    BaseGridControllerAny<T>.GetInternalDescriptor()

    GetOpenGridCommand()

    Provdies the open command required to open any entity in the system

    Declaration
    protected override ViewCommand GetOpenGridCommand()
    Returns
    Type Description
    ViewCommand

    The OpenGridItem<T> command

    Overrides
    BaseGridControllerAny<T>.GetOpenGridCommand()

    GetQueryForExcelResults()

    The query for the results to export from this grid is the same as those to display the items -> GetCurrentQuery()

    Declaration
    public override QueryableExecuter GetQueryForExcelResults()
    Returns
    Type Description
    QueryableExecuter

    The query for the results to export from this grid is the same as those to display the items -> GetCurrentQuery()

    Overrides
    BaseGridController.GetQueryForExcelResults()

    LoadExtendedData(IEnumerable<T>)

    Declaration
    protected Task LoadExtendedData(IEnumerable<T> baseData)
    Parameters
    Type Name Description
    IEnumerable<T> baseData
    Returns
    Type Description
    Task

    LoadExtendedItem(Type, object)

    Declaration
    public override object LoadExtendedItem(Type t, object gridRowItem)
    Parameters
    Type Name Description
    Type t
    object gridRowItem
    Returns
    Type Description
    object
    Overrides
    BaseGridControllerAny<T>.LoadExtendedItem(Type, object)

    OnOpenRowItem(T)

    Opens the specified entity item in a new IModelLayoutDisplayer.

    Either opens the item itself, or a related item if OpenFromRelatedColumnName is populated

    Declaration
    public override Task OnOpenRowItem(T rowItem)
    Parameters
    Type Name Description
    T rowItem

    The specified item to open in a new IModelLayoutDisplayer

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    BaseGridControllerAny<T>.OnOpenRowItem(T)

    ProcessCustomCommandResult(object)

    Declaration
    protected override Task ProcessCustomCommandResult(object result)
    Parameters
    Type Name Description
    object result
    Returns
    Type Description
    Task
    Overrides
    BaseGridController.ProcessCustomCommandResult(object)

    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.