Class BaseGridCustomController<T>
The system controller used for automatically creating a IBaseGrid<T> according to a ICustomGrid definition
Uses the GridViewControllerCustomViewParams parameter for the view to determine the ICustomGrid to load the defintion of
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views.Core
Assembly: ClientCore.dll
Syntax
public class BaseGridCustomController<T> : BaseGridController<T>, IBaseGridController, IModelViewController, ICollectionExportable, INewGridItemImplementor<T>, ICopyGridItemImplementor<T>, IGrid, IDeleteGridItemImplementor<T> where T : IBaseEntity
Type Parameters
Name | Description |
---|---|
T | The entity type to be displayed and edited by this grid controller |
Constructors
BaseGridCustomController(IBaseGrid<T>)
Creates a new system BaseGridCustomController with the specified instance of a default grid view
Declaration
public BaseGridCustomController(IBaseGrid<T> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseGrid<T> | view | The instance of the default grid view in the client application |
Methods
ColumnGroups()
Returns all the groups the columns belong to (if any) as defined in the GroupinName for the LoadAdditionalColumns()
Declaration
public override IEnumerable<GridColumnGroup> ColumnGroups()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<GridColumnGroup> | All the groups the columns belong to (if any) as defined in the GroupinName for the LoadAdditionalColumns() |
Overrides
Columns()
Returns all the columns loaded from LoadAdditionalColumns()
Declaration
public override IEnumerable<ControlDisplayInfo> Columns()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ControlDisplayInfo> | All the columns loaded from LoadAdditionalColumns() which dynamically represent the definitions in ICustomGridColumn for this ICustomGrid |
Overrides
LoadAdditionalColumns()
Loads all the control definitions as defined by the ICustomGridColumn collection for the ICustomGrid specified in the GridViewControllerCustomViewParams for this view
Declaration
protected override Task LoadAdditionalColumns()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | All the control definitions as defined by the ICustomGridColumn collection for the ICustomGrid specified in the GridViewControllerCustomViewParams for this view |