Search Results for

    Show / Hide Table of Contents

    Class NotificationsController

    Inheritance
    object
    ModelViewController
    BaseGridController
    BaseGridControllerAny<INotification>
    NotificationsController
    Implements
    IBaseGridController
    ICollectionExportable
    INewGridItemImplementor<INotification>
    ICopyGridItemImplementor<INotification>
    IGrid
    IDeleteGridItemImplementor<INotification>
    ISearchController
    IModelViewController
    Inherited Members
    BaseGridControllerAny<INotification>.CanDelete(INotification)
    BaseGridControllerAny<INotification>.Clear()
    BaseGridControllerAny<INotification>.CloseController()
    BaseGridControllerAny<INotification>.Redisplay()
    BaseGridControllerAny<INotification>.GetGridController(IBaseGrid<INotification>)
    BaseGridControllerAny<INotification>.GetInternalDescriptor()
    BaseGridControllerAny<INotification>.CanEditRowItem(INotification)
    BaseGridControllerAny<INotification>.CanEditRowItem(INotification, short)
    BaseGridControllerAny<INotification>.OnTrackedItemChanged(object, string)
    BaseGridControllerAny<INotification>.GetGridSourceItems(IEnumerable<INotification>, QueryableExecuterApplyType)
    BaseGridControllerAny<INotification>.AlterLoadedItems(IEnumerable<INotification>)
    BaseGridControllerAny<INotification>.LoadExtendedItem(Type, object)
    BaseGridControllerAny<INotification>.InitDisplay()
    BaseGridControllerAny<INotification>.ResetColumnsAndGroups(bool)
    BaseGridControllerAny<INotification>.DisplayUI()
    BaseGridControllerAny<INotification>.GetItemToReselect(object)
    BaseGridControllerAny<INotification>.LoadAdditionalColumns()
    BaseGridControllerAny<INotification>.AddCol(short, ControlDisplayInfoLight, EntityDescriptor)
    BaseGridControllerAny<INotification>.ColumnNames()
    BaseGridControllerAny<INotification>.PivotColumns(short)
    BaseGridControllerAny<INotification>.UpdateNewItem(INotification)
    BaseGridControllerAny<INotification>.AlterQuery(QueryableExecuter<INotification>)
    BaseGridControllerAny<INotification>.ApplyGridSettingsToFilter(QueryableExecuter)
    BaseGridControllerAny<INotification>.ApplyPaging(QueryableExecuter)
    BaseGridControllerAny<INotification>.SetTotalCount(int)
    BaseGridControllerAny<INotification>.SetPageIndex(int)
    BaseGridControllerAny<INotification>.TrackResults(IEnumerable<INotification>)
    BaseGridControllerAny<INotification>.UpdateColumnFromName(string)
    BaseGridControllerAny<INotification>.GetExportableColumnInfo(IEnumerable<ColumnDescriptor>)
    BaseGridControllerAny<INotification>.IsZeroColumnColumnVisible(string)
    BaseGridControllerAny<INotification>.ToggleZeroColumns()
    BaseGridControllerAny<INotification>.UpdateAllZeroColumns()
    BaseGridControllerAny<INotification>.UpdateTransferColumnStatus()
    BaseGridControllerAny<INotification>.OnSelectedItemsChanged(IEnumerable<INotification>)
    BaseGridControllerAny<INotification>.GetStandardExtraColumns(string)
    BaseGridControllerAny<INotification>.ReApply()
    BaseGridControllerAny<INotification>.InitCommands(IList<ViewCommand>)
    BaseGridControllerAny<INotification>.GetPublicToggleCommand()
    BaseGridControllerAny<INotification>.GetNewGridCommand()
    BaseGridControllerAny<INotification>.GetCopyGridCommand()
    BaseGridControllerAny<INotification>.DeleteCommandIsQuickAccess()
    BaseGridControllerAny<INotification>.GetUpCommand()
    BaseGridControllerAny<INotification>.GetDownCommand()
    BaseGridControllerAny<INotification>.MoveItemSequence(object, object)
    BaseGridControllerAny<INotification>.GetLookupIDsForNewItems(Func<IBaseEntity, Task>)
    BaseGridControllerAny<INotification>.RemoveItems(IEnumerable<INotification>)
    BaseGridControllerAny<INotification>.AddItem(INotification)
    BaseGridControllerAny<INotification>.ToggleSearch(bool)
    BaseGridControllerAny<INotification>.CollectionType
    BaseGridControllerAny<INotification>.Descriptor
    BaseGridControllerAny<INotification>.ListenToChanges
    BaseGridControllerAny<INotification>.RowPreviewColumns
    BaseGridControllerAny<INotification>.GridView
    BaseGridControllerAny<INotification>.CurrentGridItems
    BaseGridControllerAny<INotification>.CurrentItems
    BaseGridControllerAny<INotification>.AutoSelectFirstRow
    BaseGridControllerAny<INotification>.AddStandardColumns
    BaseGridControllerAny<INotification>.StandardColumnsUniqueGroupKey
    BaseGridControllerAny<INotification>.DefaultRowCount
    BaseGridControllerAny<INotification>.DefaultOrOverridenRowCount
    BaseGridControllerAny<INotification>.UserOverridenPagingAmount
    BaseGridControllerAny<INotification>.PagerRequired
    BaseGridControllerAny<INotification>.TotalCount
    BaseGridControllerAny<INotification>.LimitPagesToTotal
    BaseGridControllerAny<INotification>.TotalPageCount
    BaseGridControllerAny<INotification>.Sortings
    BaseGridControllerAny<INotification>.Filters
    BaseGridControllerAny<INotification>.ShowCheckboxForMultiSelect
    BaseGridControllerAny<INotification>.TogglerZeroColumn
    BaseGridControllerAny<INotification>.TransferColToggler
    BaseGridControllerAny<INotification>.ItemRowColorProperty
    BaseGridControllerAny<INotification>.CanCreateNew
    BaseGridControllerAny<INotification>.SelectedItemForSubViews
    BaseGridControllerAny<INotification>.ItemCellDisableCell
    BaseGridControllerAny<INotification>.UpdateSubViewsWhenMultipleRowSelectionChanges
    BaseGridControllerAny<INotification>.ExcelExportCommand
    BaseGridControllerAny<INotification>.NewItemHelper
    BaseGridControllerAny<INotification>.CopyItemHelper
    BaseGridControllerAny<INotification>.AllowColumnSelection
    BaseGridControllerAny<INotification>.AllowPublicToggleCommand
    BaseGridControllerAny<INotification>.AllowSearchCommand
    BaseGridControllerAny<INotification>.AllowPageSizeCommand
    BaseGridControllerAny<INotification>.AllowClearSearchSortFilter
    BaseGridControllerAny<INotification>.AllowNewCommand
    BaseGridControllerAny<INotification>.AllowCopyCommand
    BaseGridControllerAny<INotification>.ShowGrouping
    BaseGridControllerAny<INotification>.ShowFrozenColumnsSplitter
    BaseGridControllerAny<INotification>.ShowVerticalGridLines
    BaseGridControllerAny<INotification>.CanUserSelect
    BaseGridControllerAny<INotification>.AllowXMLImportExport
    BaseGridControllerAny<INotification>.AllowMultipleSelect
    BaseGridControllerAny<INotification>.AllowExcelExport
    BaseGridControllerAny<INotification>.AllowSequencing
    BaseGridControllerAny<INotification>.AutoOpenNewItemInTab
    BaseGridControllerAny<INotification>.OpenFromRelatedColumnName
    BaseGridControllerAny<INotification>.PopulateNewFromLookupColumnName
    BaseGridControllerAny<INotification>.PreventDuplicateLookupIDs
    BaseGridControllerAny<INotification>.PopulateNewFromLookupRelationship
    BaseGridControllerAny<INotification>.SearchGroups
    BaseGridControllerAny<INotification>.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.DefaultSearchColumn
    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 NotificationsController : BaseGridControllerAny<INotification>, IBaseGridController, ICollectionExportable, INewGridItemImplementor<INotification>, ICopyGridItemImplementor<INotification>, IGrid, IDeleteGridItemImplementor<INotification>, ISearchController, IModelViewController

    Constructors

    NotificationsController(IBaseGrid<INotification>)

    Declaration
    public NotificationsController(IBaseGrid<INotification> view)
    Parameters
    Type Name Description
    IBaseGrid<INotification> 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.Entities.Notifications.INotification>.AllowDeleteCommand

    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.Entities.Notifications.INotification>.AllowOpenCommand

    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

    AlterColumnInfo(ControlDisplayInfo)

    Provides an inheriting controller the opportunity to alter the specified column before it is added to the IBaseGrid<T>

    This is used in conjunction with columns defined via ColumnNames(), rather than Columns() which explicitly defines all information

    The default operation provides a CustomComboItems if the column is against a property that is a link to an entity type (IsEntityLink)
    Declaration
    protected override void AlterColumnInfo(ControlDisplayInfo info)
    Parameters
    Type Name Description
    ControlDisplayInfo info

    The definition of the column that can be updated before being created in the IBaseGrid<T>

    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<LemonEdge.API.Entities.Notifications.INotification>.AlterColumnInfo(LemonEdge.Client.UI.API.Controls.ControlDisplayInfo)

    Columns()

    Provides a list of all the columns to be created against the IBaseGrid<T> by this control

    The default behaviour is to enumerate ColumnNames() and create the list automatically. You can also override AlterColumnInfo(ControlDisplayInfo) to provide more detail for specific columns

    Alternatively you can override this to explicitly define them
    Declaration
    public override IEnumerable<ControlDisplayInfo> Columns()
    Returns
    Type Description
    IEnumerable<ControlDisplayInfo>

    A list of all the columns to be created against the IBaseGrid<T> by this control

    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<LemonEdge.API.Entities.Notifications.INotification>.Columns()

    GetDeleteCommand()

    Returns the command for deleting an item in the grid

    Declaration
    protected override ViewCommand GetDeleteCommand()
    Returns
    Type Description
    ViewCommand

    The command for deleting an item in the grid

    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<LemonEdge.API.Entities.Notifications.INotification>.GetDeleteCommand()

    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<INotification>> GetGridSourceItems()
    Returns
    Type Description
    Task<IEnumerable<INotification>>

    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.Entities.Notifications.INotification>.GetGridSourceItems()

    GetOpenGridCommand()

    Returns the command for opening the grid item.

    Not implemented for this controller as the INotification may not be an entity type it knows how to open. Must be implemented by an inheriting controller.

    Declaration
    protected override ViewCommand GetOpenGridCommand()
    Returns
    Type Description
    ViewCommand

    The command for opening the grid item.

    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<LemonEdge.API.Entities.Notifications.INotification>.GetOpenGridCommand()

    OnOpenRowItem(INotification)

    A method called by the system to open the specified data item from the grid

    The defult implementation throws an error, this must be implemented by an inheriting controller if the AllowOpenCommand is true

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

    The item to open by the system

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<LemonEdge.API.Entities.Notifications.INotification>.OnOpenRowItem(LemonEdge.API.Entities.Notifications.INotification)

    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.