Search Results for

    Show / Hide Table of Contents

    Class BaseGridRelatedCollectionController<TSingleItem, TCollection>

    The base generic grid controller which works with the IBaseGridRelatedCollection<TParentSingleItem, TCollection> view and displays an entity type as rows in the grid that are all related to an other entity

    This is the main base controller for creating grids, and dynamically creating their columns, for any entity in the system that is related to another entity. It is different from BaseGridRelatedAnyCollectionController<TSingleItem, TCollection> as that can display any object, and BaseGridControllerAny<T> as that can have multiple different types of parent it is related to where as this must be of type TSingleItem

    Both this controller and the BaseDefaultSingleViewController<T> view have a similar mechanism for creating controls dynamically within the UI
    Inheritance
    object
    ModelViewController
    BaseGridController
    BaseGridControllerAny<TCollection>
    BaseGridController<TCollection>
    BaseGridRelatedCollectionController<TSingleItem, TCollection>
    APIQueryGridController
    APIQueryParametersController
    ActionTriggerGatesController
    AddInsController
    AlgorithmALgorithmRunsController
    AlgorithmOutputsController
    AlgorithmRunStepsController
    AlgorithmSheetModifierController
    AlgorithmStepDataCopierController
    AllocationAmountsController
    AllocationPathInstrumentsController
    AllocationPathRulesController
    BaseEntityEntitySets<ES, SE>
    BaseEntitySetEntitiesController<ES, SE>
    BaseReportParametersController<T>
    BlendTransactionInstrumentsController
    BlendingTransactionInstrumentNewValueAggregatesController
    BlendingTransactionInstrumentNewValueAllocationsController
    BlendingTransactionInstrumentNewValuesController
    BlendingTransactionInstrumentValuesController
    CanvasPromotedItemsController
    CanvasPromotionsController
    ChartOfAccountsTransactionCodeGLEntriesController
    CodeSnippetParametersController
    CollateralTypeItemsController
    CompanyEmployeeController
    CoverageTypeItemsController
    CurrencyExchangeRatesController
    CustomGridColumnsController
    CustomObjectIndexColumnsController
    CustomObjectIndexesController
    CustomObjectPropertiesController
    CustomViewControlsController
    DataMappingPropertiesController
    DataSetJoinsController
    DataSetParametersController
    DatasetChainsController
    DatasetColumnsController
    DatasetDataTemplatesController
    DatasetShortcutOverridesController
    DatasetShortcutParametersController
    DefaultObjectValuesController
    DocumentOwnersController
    DomicileHolidaysController
    EntityAccountsController
    EntityChartOfAccountsController
    EntityLedgersController
    EntityOwnershipController
    EntityPeriodClosingsControllerBase
    EntitySetChartOfAccountsController
    EntitySetDuplicateMappedInstrumentsController
    EntitySetEntityAccountsController
    EntitySetLedgersController
    EntitySetPeriodEndsController
    EntitySetStepChangesController
    EntitySetTransactionCodesController
    EntitySetTransactionsController
    EntitySetTransfersController
    EntitySetUnmappedInstrumentsController
    EntityTransactionCodesController
    EntityTransactionsController
    ExchangeRateCategoryRatesController
    FolderAlgorithmRunsController
    FolderAlgorithmsController
    FolderAllocationMappingsController
    FolderAllocationMethodsController
    FolderAllocationPathsController
    FolderAllocationRulesController
    FolderChartsController
    FolderCodeSnippetsController
    FolderCustomValidationsController
    FolderDataMappersController
    FolderDatasetShortcutsController
    FolderDatasetsController
    FolderDocumentsController
    FolderEntitySetsController<T>
    FolderGLAccountsOnlyController
    FolderItemTasksController
    FolderObjectEntitiesController<T>
    FolderPivotsController
    FolderQueryRunnersController
    FolderReportsController
    FolderSQLWrappersController
    FolderTransactionCodesController
    FolderVennSetsController
    GLAccountClassificationsController
    GLAccountSubAccountsController
    GLAccountTransactionCodeGLEntriesController
    GLClassificationNameAccountsController
    GLClassificationNameAccountsTypeController
    GLClassificationNamesController
    GLPostingAllocatedController
    GLRollupClassifications
    GroupedTransactionTransactionsController
    GroupingItemsController
    ImportDefinitionStepsController
    InstrumentCollateralItemsController
    InstrumentCoverageItemsController
    InstrumentLoanScheduleController
    InstrumentSetItemsController
    InstrumentSourceLinksController
    InstrumentTargetLinksController
    InstrumentTransactionsController
    ItemTaskTasksController
    LayoutRolesController
    LedgerTransactionCodeGLEntriesController
    LoanInfoHolidaysController
    ObjectEntityRatesController
    PeriodEndAdjustedDataItemsController
    PeriodEndAdjustmentsController
    PeriodEndDataItemsController
    PeriodEndTransactionLinkItemsController
    PeriodEndTransformationItemOffsetsController
    PeriodEndTransformationItemsController
    PersonEmployeeController
    PivotFieldsController
    QueryRunnerDataTemplatesController
    QueryRunnerParametersController
    QueryRunnerStepParametersController
    QueryRunnerStepsController
    QuestionsController
    RateTypeItemsController
    ReconciliationSourceColumnsController
    ReconciliationSourcesController
    ReportExpressDataSetParametersController
    ReportExpressDataSetsController
    ReportExpressRelationshipColumnsController
    ReportExpressRelationshipsController
    RoleLayoutsController
    RoleMenuItemsController
    RoleUsersController
    SQLFunctionsController
    SQLTypeWrappersController
    SQLWrapperChainLinksController
    SQLWrapperChainsController
    SQLWrapperDataTemplatesController
    SQLWrapperDependantsController
    SafeEntityTypesController
    SafeTeamsController
    ServerTaskModifiedItemsController
    ServerTaskStatusesController
    SingleItemWithChildTransactionsController<T>
    StepChangeAlgorithmsController
    StepChangeMovementsController
    StepChangeRebalancesController
    StepTransactionLinesController
    StepTransactionSwitchesController
    TagTypesController
    TeamCanvasPromotionsController
    TeamDefaultPermissionsController
    TeamDefaultTeamPermissionsController
    TeamSafesController
    TeamUsersController
    TransactionAggregatorOnController
    TransactionCodeAllocateToTransaction
    TransactionCodeAllocateToTransactionValues
    TransactionCodeDependantsController
    TransactionCodeExtendedControlsController
    TransactionCodeExtendedPropertiesController
    TransactionCodeGLEntriesController
    TransactionCodeProcessorsController
    TransactionCodeTransactionCodeGroupingController
    TransactionCodeValuesController
    TransactionGLPostingsController
    TransactionHeadersController
    TransactionMatcherOnController
    TransactionTransactionLinksController
    TransactionTypeValueClassificationsController
    TransactionTypeValuesController
    TransactionTypeValuesGLEntriesController
    TransactionValuesAllocatedController
    TransactionValuesController
    TransferEntityOverrideController
    TransferTargetsController
    TransferTranValueOverrideController
    UserRolesController
    UserTeamsController
    VennSetParametersController
    VennSetQueryableItemColumnsController
    VennSetQueryableItemParamsController
    VennSetQueryableItemsController
    BaseGridCustomRelatedCollectionController<SI, T>
    CustomListItemsController
    QuestionAnswerCreatorsController
    TransactionValueAssociationsController
    Implements
    IBaseGridController
    ICollectionExportable
    INewGridItemImplementor<TCollection>
    ICopyGridItemImplementor<TCollection>
    IGrid
    IDeleteGridItemImplementor<TCollection>
    ISearchController
    IModelViewController
    Inherited Members
    BaseGridController<TCollection>.LoadExtendedItem(Type, object)
    BaseGridController<TCollection>.GetGridSourceItems()
    BaseGridController<TCollection>.LoadExtendedData(IEnumerable<TCollection>)
    BaseGridController<TCollection>.ConvertParameterItemsFilterToItems(IEnumerable<IBaseEntity>)
    BaseGridController<TCollection>.GetInternalDescriptor()
    BaseGridController<TCollection>.GetCurrentQuery()
    BaseGridController<TCollection>.GetQueryForExcelResults()
    BaseGridController<TCollection>.GetCreationQuery()
    BaseGridController<TCollection>.AddParameterIDFilterToQuery(QueryableExecuter<TCollection>, IEnumerable<Guid>)
    BaseGridController<TCollection>.AddParameterFilterToQuery(QueryableExecuter<TCollection>, QueryableFilter)
    BaseGridController<TCollection>.GetOpenGridCommand()
    BaseGridController<TCollection>.GetCopyGridCommand()
    BaseGridController<TCollection>.OnOpenRowItem(TCollection)
    BaseGridController<TCollection>.ProcessCustomCommandResult(object)
    BaseGridController<TCollection>.NewItemHelper
    BaseGridController<TCollection>.CopyItemHelper
    BaseGridController<TCollection>.AllowOpenCommand
    BaseGridController<TCollection>.AllowNewCommand
    BaseGridController<TCollection>.AllowCopyCommand
    BaseGridController<TCollection>.AllowDeleteCommand
    BaseGridController<TCollection>.OpenInSameContext
    BaseGridController<TCollection>.HasGlobalFilter
    BaseGridControllerAny<TCollection>.CanDelete(TCollection)
    BaseGridControllerAny<TCollection>.Clear()
    BaseGridControllerAny<TCollection>.CloseController()
    BaseGridControllerAny<TCollection>.Redisplay()
    BaseGridControllerAny<TCollection>.GetGridController(IBaseGrid<TCollection>)
    BaseGridControllerAny<TCollection>.CanEditRowItem(TCollection)
    BaseGridControllerAny<TCollection>.CanEditRowItem(TCollection, short)
    BaseGridControllerAny<TCollection>.OnTrackedItemChanged(object, string)
    BaseGridControllerAny<TCollection>.GetGridSourceItems(IEnumerable<TCollection>, QueryableExecuterApplyType)
    BaseGridControllerAny<TCollection>.AlterLoadedItems(IEnumerable<TCollection>)
    BaseGridControllerAny<TCollection>.InitDisplay()
    BaseGridControllerAny<TCollection>.ResetColumnsAndGroups(bool)
    BaseGridControllerAny<TCollection>.DisplayUI()
    BaseGridControllerAny<TCollection>.GetItemToReselect(object)
    BaseGridControllerAny<TCollection>.LoadAdditionalColumns()
    BaseGridControllerAny<TCollection>.Columns()
    BaseGridControllerAny<TCollection>.AddCol(short, ControlDisplayInfoLight, EntityDescriptor)
    BaseGridControllerAny<TCollection>.ColumnNames()
    BaseGridControllerAny<TCollection>.PivotColumns(short)
    BaseGridControllerAny<TCollection>.ApplyGridSettingsToFilter(QueryableExecuter)
    BaseGridControllerAny<TCollection>.ApplyPaging(QueryableExecuter)
    BaseGridControllerAny<TCollection>.SetTotalCount(int)
    BaseGridControllerAny<TCollection>.SetPageIndex(int)
    BaseGridControllerAny<TCollection>.TrackResults(IEnumerable<TCollection>)
    BaseGridControllerAny<TCollection>.AlterColumnInfo(ControlDisplayInfo)
    BaseGridControllerAny<TCollection>.UpdateColumnFromName(string)
    BaseGridControllerAny<TCollection>.GetExportableColumnInfo(IEnumerable<ColumnDescriptor>)
    BaseGridControllerAny<TCollection>.IsZeroColumnColumnVisible(string)
    BaseGridControllerAny<TCollection>.ToggleZeroColumns()
    BaseGridControllerAny<TCollection>.UpdateAllZeroColumns()
    BaseGridControllerAny<TCollection>.UpdateTransferColumnStatus()
    BaseGridControllerAny<TCollection>.OnSelectedItemsChanged(IEnumerable<TCollection>)
    BaseGridControllerAny<TCollection>.GetStandardExtraColumns(string)
    BaseGridControllerAny<TCollection>.ReApply()
    BaseGridControllerAny<TCollection>.GetPublicToggleCommand()
    BaseGridControllerAny<TCollection>.GetNewGridCommand()
    BaseGridControllerAny<TCollection>.GetDeleteCommand()
    BaseGridControllerAny<TCollection>.DeleteCommandIsQuickAccess()
    BaseGridControllerAny<TCollection>.GetUpCommand()
    BaseGridControllerAny<TCollection>.GetDownCommand()
    BaseGridControllerAny<TCollection>.MoveItemSequence(object, object)
    BaseGridControllerAny<TCollection>.GetLookupIDsForNewItems(Func<IBaseEntity, Task>)
    BaseGridControllerAny<TCollection>.RemoveItems(IEnumerable<TCollection>)
    BaseGridControllerAny<TCollection>.AddItem(TCollection)
    BaseGridControllerAny<TCollection>.ToggleSearch(bool)
    BaseGridControllerAny<TCollection>.CollectionType
    BaseGridControllerAny<TCollection>.Descriptor
    BaseGridControllerAny<TCollection>.ListenToChanges
    BaseGridControllerAny<TCollection>.RowPreviewColumns
    BaseGridControllerAny<TCollection>.GridView
    BaseGridControllerAny<TCollection>.CurrentGridItems
    BaseGridControllerAny<TCollection>.CurrentItems
    BaseGridControllerAny<TCollection>.AutoSelectFirstRow
    BaseGridControllerAny<TCollection>.AddStandardColumns
    BaseGridControllerAny<TCollection>.StandardColumnsUniqueGroupKey
    BaseGridControllerAny<TCollection>.DefaultRowCount
    BaseGridControllerAny<TCollection>.DefaultOrOverridenRowCount
    BaseGridControllerAny<TCollection>.UserOverridenPagingAmount
    BaseGridControllerAny<TCollection>.PagerRequired
    BaseGridControllerAny<TCollection>.TotalCount
    BaseGridControllerAny<TCollection>.LimitPagesToTotal
    BaseGridControllerAny<TCollection>.TotalPageCount
    BaseGridControllerAny<TCollection>.Sortings
    BaseGridControllerAny<TCollection>.Filters
    BaseGridControllerAny<TCollection>.ShowCheckboxForMultiSelect
    BaseGridControllerAny<TCollection>.TogglerZeroColumn
    BaseGridControllerAny<TCollection>.TransferColToggler
    BaseGridControllerAny<TCollection>.ItemRowColorProperty
    BaseGridControllerAny<TCollection>.CanCreateNew
    BaseGridControllerAny<TCollection>.SelectedItemForSubViews
    BaseGridControllerAny<TCollection>.ItemCellDisableCell
    BaseGridControllerAny<TCollection>.UpdateSubViewsWhenMultipleRowSelectionChanges
    BaseGridControllerAny<TCollection>.ExcelExportCommand
    BaseGridControllerAny<TCollection>.AllowColumnSelection
    BaseGridControllerAny<TCollection>.AllowPublicToggleCommand
    BaseGridControllerAny<TCollection>.AllowSearchCommand
    BaseGridControllerAny<TCollection>.AllowPageSizeCommand
    BaseGridControllerAny<TCollection>.AllowClearSearchSortFilter
    BaseGridControllerAny<TCollection>.ShowGrouping
    BaseGridControllerAny<TCollection>.ShowFrozenColumnsSplitter
    BaseGridControllerAny<TCollection>.ShowVerticalGridLines
    BaseGridControllerAny<TCollection>.CanUserSelect
    BaseGridControllerAny<TCollection>.AllowXMLImportExport
    BaseGridControllerAny<TCollection>.AllowMultipleSelect
    BaseGridControllerAny<TCollection>.AllowExcelExport
    BaseGridControllerAny<TCollection>.AllowSequencing
    BaseGridControllerAny<TCollection>.AutoOpenNewItemInTab
    BaseGridControllerAny<TCollection>.OpenFromRelatedColumnName
    BaseGridControllerAny<TCollection>.PreventDuplicateLookupIDs
    BaseGridControllerAny<TCollection>.PopulateNewFromLookupRelationship
    BaseGridControllerAny<TCollection>.SearchGroups
    BaseGridControllerAny<TCollection>.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 BaseGridRelatedCollectionController<TSingleItem, TCollection> : BaseGridController<TCollection>, IBaseGridController, ICollectionExportable, INewGridItemImplementor<TCollection>, ICopyGridItemImplementor<TCollection>, IGrid, IDeleteGridItemImplementor<TCollection>, ISearchController, IModelViewController where TSingleItem : IBaseEntity where TCollection : IBaseEntity
    Type Parameters
    Name Description
    TSingleItem

    An entity type inheriting from IBaseEntity

    TCollection

    An entity type that are all related to the SingleItem in the query

    Constructors

    BaseGridRelatedCollectionController(IBaseGridRelatedCollection<TSingleItem, TCollection>)

    Creates a new BaseGridRelatedCollectionController with the specified instance of a default grid related collection view

    Declaration
    public BaseGridRelatedCollectionController(IBaseGridRelatedCollection<TSingleItem, TCollection> view)
    Parameters
    Type Name Description
    IBaseGridRelatedCollection<TSingleItem, TCollection> view

    The instance of the default grid related collection view in the client application

    Properties

    AllowIDFilter

    Indicates this grids results are not filtered by any DisplayableItemDescriptorForCollectionParams, as it is not a top level collection of items

    Declaration
    protected override bool AllowIDFilter { get; }
    Property Value
    Type Description
    bool
    Overrides
    BaseGridController<TCollection>.AllowIDFilter

    AllowNewEntityFromLookupColumn

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

    CollectionRelationshipColumnName

    This is the property on the TCollection entities that holds a relationship value that points to the SingleItem type

    This controller will automatically use that to filter the correct entities for the grid in AlterQuery(QueryableExecuter<TCollection>)

    Declaration
    public abstract string CollectionRelationshipColumnName { get; }
    Property Value
    Type Description
    string

    PopulateNewFromLookupColumnName

    Returns OpenFromRelatedColumnName

    Declaration
    public override string PopulateNewFromLookupColumnName { get; }
    Property Value
    Type Description
    string
    Overrides
    BaseGridControllerAny<TCollection>.PopulateNewFromLookupColumnName

    SingleItem

    The single item this grid is being displayed against and that all entities of type TCollection in the grid are related to

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

    Methods

    AddRelationshipJoin(QueryableExecuter<TCollection>)

    Alters the provided query by ensuring all entities returned are related to the SingleItem by having their CollectionRelationshipColumnName have the same value as the SingleItem ID

    This can be overidden to customise how the entities of type TCollection are precisely related to the SingleItem if not directly through that join

    Declaration
    protected virtual QueryableExecuter<TCollection> AddRelationshipJoin(QueryableExecuter<TCollection> query)
    Parameters
    Type Name Description
    QueryableExecuter<TCollection> query

    The existing query to return all the results that will populate the grid

    Returns
    Type Description
    QueryableExecuter<TCollection>

    An altered query that also ensures all entities returned are related to the SingleItem by having their CollectionRelationshipColumnName have the same value as the SingleItem ID

    AlterQuery(QueryableExecuter<TCollection>)

    Additionally alters the base query alteration by ensuring all entities returned are related to the SingleItem by having their CollectionRelationshipColumnName have the same value as the SingleItem ID

    This is achieved via AddRelationshipJoin(QueryableExecuter<TCollection>) which can be overidden to customise how the entities of type TCollection are precisely related to the SingleItem if not directly through that join

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

    The existing query to return all the results that will populate the grid

    Returns
    Type Description
    QueryableExecuter<TCollection>

    An altered query that also ensures all entities returned are related to the SingleItem by having their CollectionRelationshipColumnName have the same value as the SingleItem ID

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

    GetNewEntityFromLookupCommand()

    Declaration
    public virtual ViewCommand GetNewEntityFromLookupCommand()
    Returns
    Type Description
    ViewCommand

    InitCommands(IList<ViewCommand>)

    Adds the following commands, if the associated AllowXXXCommand property returns true: A public toggle, multi-select row, open, column visiblitiy, transfer visible, search, view cancelled, view system, export, new, copy, move up/down, xml export, and delete commands

    Declaration
    protected override void InitCommands(IList<ViewCommand> commands)
    Parameters
    Type Name Description
    IList<ViewCommand> commands

    The initial set of commands for this view

    Overrides
    BaseGridControllerAny<TCollection>.InitCommands(IList<ViewCommand>)

    UpdateNewItem(TCollection)

    Updates any new item created in this grid to also have the CollectionRelationshipColumnName property hold the value of the SingleItem ID

    Declaration
    protected override Task UpdateNewItem(TCollection item)
    Parameters
    Type Name Description
    TCollection item

    The new item created for this grid

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    BaseGridControllerAny<TCollection>.UpdateNewItem(TCollection)

    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.