Search Results for

    Show / Hide Table of Contents

    Class CodeSnippetResultsController

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

    Constructors

    CodeSnippetResultsController(IBaseGrid<object>)

    Declaration
    public CodeSnippetResultsController(IBaseGrid<object> view)
    Parameters
    Type Name Description
    IBaseGrid<object> view

    Properties

    AddStandardColumns

    The system adds standard columns to every grid that are initially hidden, but can be viewed by the user. These columns are returned from GetStandardExtraColumns(string)

    These are columns common to every entity in the system: LastUpdated, ModifiedByUserID, CanvasID, and Status, CancelledID, CorrectedByID (if object is of type ITransactionalEntity) ID

    The default is these columns are added if object is an entity type deriving from IBaseEntity
    Declaration
    protected override bool AddStandardColumns { get; }
    Property Value
    Type Description
    bool
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<object>.AddStandardColumns

    AllowCopyCommand

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

    The default is false

    Declaration
    public override bool AllowCopyCommand { get; }
    Property Value
    Type Description
    bool
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<object>.AllowCopyCommand

    AllowExcelExport

    Indicates the command to allow the grid data to be exported by the user is included in the InitCommands(IList<ViewCommand>)

    The default is true

    Declaration
    public override bool AllowExcelExport { get; }
    Property Value
    Type Description
    bool
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<object>.AllowExcelExport

    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<object>.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<object>.AllowOpenCommand

    AllowSearchCommand

    Indicates the command to allow the default search of text by the user is included in the InitCommands(IList<ViewCommand>)

    The default is true

    Declaration
    public override bool AllowSearchCommand { get; }
    Property Value
    Type Description
    bool
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<object>.AllowSearchCommand

    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 object 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<object>.AutoOpenNewItemInTab

    CheckIsLockedForCanWrite

    Indicates the controller should check if the item is locked before allowing CanWrite to be true. Defaults to true.

    Declaration
    protected override bool CheckIsLockedForCanWrite { get; }
    Property Value
    Type Description
    bool
    Overrides
    ModelViewController.CheckIsLockedForCanWrite

    CollectionType

    Indicates the collection type is of type object

    Declaration
    public override Type CollectionType { get; }
    Property Value
    Type Description
    Type
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<object>.CollectionType

    DefaultRowCount

    The default number of rows that should be displayed in the grid before the grid will start paging the results

    The default number is DisplayableItemDescriptor.UIRestrictedMaxCollectionItems which can be set depending on the client application. For instance mobiles can override this to a smaller number

    The default if DisplayableItemDescriptor.UIRestrictedMaxCollectionItems is not set is 500
    Declaration
    public override int DefaultRowCount { get; }
    Property Value
    Type Description
    int
    Overrides
    LemonEdge.Client.Core.Views.Core.BaseGridControllerAny<object>.DefaultRowCount

    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

    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<object>.AlterColumnInfo(LemonEdge.Client.UI.API.Controls.ControlDisplayInfo)

    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<object>.ColumnNames()

    DisplayItem(object)

    Clears the view, determines if CanWrite is true, and if it ShouldDisplayItem(object?) then calls AddHandlers(object) and DisplayUI()

    Declaration
    public override Task DisplayItem(object item)
    Parameters
    Type Name Description
    object item

    The item to be displayed against this View

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    ModelViewController.DisplayItem(object)

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

    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<object>.GetGridSourceItems()

    GetOpenGridCommand()

    Returns the command for opening the grid item.

    Not implemented for this controller as the object 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<object>.GetOpenGridCommand()

    InitAsync()

    Provides the controller a chance to initialize any dependant data. Called once by the system after controller creation.

    Declaration
    public override Task InitAsync()
    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    BaseGridController.InitAsync()

    OnOpenRowItem(object)

    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(object rowItem)
    Parameters
    Type Name Description
    object rowItem

    The item to open by the system

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    BaseGridControllerAny<object>.OnOpenRowItem(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.