Class SQLWrapperDatasetReferenceGrid
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Controllers
Assembly: LemonEdge.ClientEntities.dll
Syntax
public class SQLWrapperDatasetReferenceGrid : BaseGridAnyRelatedAnyCollectionController<SQLWrapperDatasetReference>, IBaseGridController, ICollectionExportable, INewGridItemImplementor<SQLWrapperDatasetReference>, ICopyGridItemImplementor<SQLWrapperDatasetReference>, IGrid, IDeleteGridItemImplementor<SQLWrapperDatasetReference>, ISearchController, IModelViewController
Constructors
SQLWrapperDatasetReferenceGrid(IBaseGridAnyRelatedAnyCollection<SQLWrapperDatasetReference>)
Declaration
public SQLWrapperDatasetReferenceGrid(IBaseGridAnyRelatedAnyCollection<SQLWrapperDatasetReference> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseGridAnyRelatedAnyCollection<SQLWrapperDatasetReference> | view |
Properties
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
CollectionRelationshipColumnName
This is the property on the SQLWrapperDatasetReference 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<T>)
Declaration
public override string CollectionRelationshipColumnName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
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 themDeclaration
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
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<SQLWrapperDatasetReference>> GetGridSourceItems()
Returns
Type | Description |
---|---|
Task<IEnumerable<SQLWrapperDatasetReference>> | A list of items to be displayed against the grid given all active filters, sorting, searches, paging, etc |