Class AllItemsWithLabelController<T>
A base grid controller that works against all entity types that have a LabelColumn property set
That column is set as the one visible column in the grid. This can be used as a default grid for entities with labels that have no other controller views in code or config
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Views
Assembly: ClientCore.dll
Syntax
public class AllItemsWithLabelController<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 with this grid controller |
Constructors
AllItemsWithLabelController(IBaseGrid<T>)
Creates a new AllItemsWithLabelController grid controller
Declaration
public AllItemsWithLabelController(IBaseGrid<T> view)
Parameters
Type | Name | Description |
---|---|---|
IBaseGrid<T> | view | The IBaseGrid view implementation using the UI components of the client application |
Properties
AllowCopyCommand
False - does not allow copying of entities automatically
Declaration
public override bool AllowCopyCommand { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
AllowDeleteCommand
False - does not allow deleting of entities automatically
Declaration
public override bool AllowDeleteCommand { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
AllowNewCommand
False - does not allow the creation of new entities automatically
Declaration
public override bool AllowNewCommand { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
AllowSequencing
False - does not allow the movement of entities up/down the grid automatically
Declaration
public override bool AllowSequencing { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
AutoOpenNewItemInTab
Returns true, as a new item can not be edited in this grid alone, it only has the one label column
Declaration
public override bool AutoOpenNewItemInTab { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
DefaultSearchColumn
Sets the LabelColumn as the default column to search
Declaration
protected override string DefaultSearchColumn { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
AlterQuery(QueryableExecuter<T>)
Alters the query of all entities of type T
to order by the label column
Declaration
protected override QueryableExecuter<T> AlterQuery(QueryableExecuter<T> query)
Parameters
Type | Name | Description |
---|---|---|
QueryableExecuter<T> | query | The query for displaying all the entities of type |
Returns
Type | Description |
---|---|
QueryableExecuter<T> | The query for displaying all the entities of type |
Overrides
ColumnNames()
Adds the LabelColumn as a text read-only column to the grid
Declaration
protected override IEnumerable<ControlDisplayInfoLight> ColumnNames()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ControlDisplayInfoLight> | The controls to be displayed as columns for this grid |