Class DataGridCommandService
Encapsulates the command-related routine within a RadDataGrid instance.
Inherited Members
Namespace: Telerik.XamarinForms.DataGrid.Commands
Assembly: Telerik.XamarinForms.DataGrid.dll
Syntax
public class DataGridCommandService : CommandServiceBase<RadDataGrid>
Methods
CanExecuteCommand(DataGridCommandId, Object)
Determines whether the command, associated with the specified Id can be executed given the parameter provided.
Declaration
public bool CanExecuteCommand(DataGridCommandId id, object parameter)
Parameters
DataGridCommandId
id
The DataGridCommandId value to look for. |
System.Object
parameter
The parameter that is passed to the CanExecute and Execute methods of the command. |
Returns
System.Boolean
True if the command can be executed, false otherwise. |
CanExecuteDefaultCommand(DataGridCommandId, Object)
Determines whether the default command, associated with the specified Id can be executed given the parameter provided.
Declaration
public bool CanExecuteDefaultCommand(DataGridCommandId id, object parameter)
Parameters
DataGridCommandId
id
The DataGridCommandId value to look for. |
System.Object
parameter
The parameter that is passed to the CanExecute and Execute methods of the command. |
Returns
System.Boolean
True if the command can be executed, false otherwise. |
ExecuteCommand(DataGridCommandId, Object)
Attempts to find the command, associated with the specified Id and to perform its Execute routine, using the provided parameter.
Declaration
public bool ExecuteCommand(DataGridCommandId id, object parameter)
Parameters
DataGridCommandId
id
The DataGridCommandId value to look for. |
System.Object
parameter
The parameter that is passed to the CanExecute and Execute methods of the command. |
Returns
System.Boolean
True if the command is successfully executed, false otherwise. |
ExecuteDefaultCommand(DataGridCommandId, Object)
Executes the default (built-in) command (without looking for user-defined commands), associated with the specified Id.
Declaration
public bool ExecuteDefaultCommand(DataGridCommandId id, object parameter)
Parameters
DataGridCommandId
id
The DataGridCommandId value to look for. |
System.Object
parameter
The parameter that is passed to the CanExecute and Execute methods of the command. |
Returns
System.Boolean
True if the command is successfully executed, false otherwise. |