Class PackageSelectorGridController
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Tools.Views.Controllers
Assembly: LemonEdge.Client.Tools.dll
Syntax
public class PackageSelectorGridController : BaseGridRelatedAnyCollectionController<IAddInModule, IPackage>, IBaseGridController, ICollectionExportable, INewGridItemImplementor<IPackage>, ICopyGridItemImplementor<IPackage>, IGrid, IDeleteGridItemImplementor<IPackage>, ISearchController, IModelViewController
Constructors
PackageSelectorGridController(IBaseGridRelatedCollection<IAddInModule, IPackage>, IConnectorAccessor)
Declaration
public PackageSelectorGridController(IBaseGridRelatedCollection<IAddInModule, IPackage> view, IConnectorAccessor connectorAccessor)
Parameters
Type | Name | Description |
---|---|---|
IBaseGridRelatedCollection<IAddInModule, IPackage> | view | |
IConnectorAccessor | connectorAccessor |
Properties
CollectionRelationshipColumnName
This is the property on the IPackage 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 override string CollectionRelationshipColumnName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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
ShowCheckboxForMultiSelect
The flag for checkbox display to multiselect grid items
Declaration
protected override bool ShowCheckboxForMultiSelect { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
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 thisDeclaration
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
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<IPackage>> GetGridSourceItems()
Returns
Type | Description |
---|---|
Task<IEnumerable<IPackage>> | A list of items to be displayed against the grid given all active filters, sorting, searches, paging, etc |