Class OpenGridItem<T>
A view command that opens the selected items from the grid into a new layout context (IModelLayoutDisplayer)
If the item has already been altered in the current context, it will be opened using the same IEntityUpdater context, if not it will be opened in an isolated new one.
See https://web.lemonedge.com/help/contexts/ for more informationInheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands.ViewCommands
Assembly: ClientCore.dll
Syntax
public class OpenGridItem<T> : ViewCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Type Parameters
Name | Description |
---|---|
T | The type of entity to open an item from |
Constructors
OpenGridItem(IModelLayoutCommon, IOpenGridItemImplementor<T>)
Creates a new OpenGridItem view command
Declaration
public OpenGridItem(IModelLayoutCommon owner, IOpenGridItemImplementor<T> view)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | owner | The owning host for this command |
IOpenGridItemImplementor<T> | view | The grid implementation to open the selected items from |
Properties
Description
Declaration
public override string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
IconID
Declaration
public override Guid IconID { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Overrides
OverlayIconID
Declaration
public override Guid? OverlayIconID { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
Overrides
Title
Declaration
public override string Title { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
ToolTip
Declaration
public override string ToolTip { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
InternalCanExecute(Object)
Returns true if there are any selected items in the grid
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Boolean | True if there are any selected items in the grid |
Overrides
InternalExecuteAsync(Object)
For each selected item in the grid the system opens the entity (or the related entity if OpenFromRelatedColumnName has a value) in a new layout
Declaration
public override Task InternalExecuteAsync(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of the operation |
Overrides
RemoveEventHandlersOnDispose()
Declaration
protected override void RemoveEventHandlersOnDispose()