Class GridColumnsVisible
A custom view command of type ColumnSelector
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands.ViewCommands
Assembly: ClientCore.dll
Syntax
public class GridColumnsVisible : ViewCustomCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
GridColumnsVisible(BaseGridController)
Creates a new GridColumnsVisible command
Declaration
public GridColumnsVisible(BaseGridController gridController)
Parameters
Type | Name | Description |
---|---|---|
BaseGridController | gridController | The grid controller this command executes against to show/hide column visibility |
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
IncludeInSimple
Declaration
public override bool IncludeInSimple { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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
ViewController
The grid controller this command operates against
Declaration
public override ModelViewController ViewController { get; }
Property Value
Type | Description |
---|---|
ModelViewController |
Overrides
Methods
AddManualColumnVisibleChange(String, Boolean)
Used by the UI specific implementation of showing/hiding columns. Indicates the specified column has been made visible/hidden by the user.
Can be retrieved from IsManualVisible(String)
Declaration
public void AddManualColumnVisibleChange(string bindingPath, bool isVisible)
Parameters
Type | Name | Description |
---|---|---|
System.String | bindingPath | The binding property of the column that was hidden/visible |
System.Boolean | isVisible | Indicates if the user manually hid or showed the column |
InternalCanExecute(Object)
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
InternalExecuteAsync(Object)
Does not actually execute any command, as this has to be specifically executed in the client application through a custom approach depending on the UI itself
Declaration
public override Task InternalExecuteAsync(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Returns immediately |
Overrides
IsManualVisible(String)
Indicates if the user has manualy hidden or shown the specified column. Returns null if the user has not set it at all.
Declaration
public bool? IsManualVisible(string bindingPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | bindingPath | The column to check if the user has changed the visibility of |
Returns
Type | Description |
---|---|
System.Nullable<System.Boolean> | Return if the user has manualy hidden or shown the specified column. Returns null if the user has not set it at all. |