Class
DataGridCommandService

Encapsulates the command-related routine within a RadDataGrid instance.

Definition

Namespace:Telerik.Maui.Controls.DataGrid

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class DataGridCommandService : CommandServiceBase<RadDataGrid>

Inheritance: objectCommandServiceBase<RadDataGrid>DataGridCommandService

Inherited Members CommandServiceBase<RadDataGrid>.userCommandsCommandServiceBase<RadDataGrid>.defaultCommandsCommandServiceBase<RadDataGrid>.ownerCommandServiceBase<RadDataGrid>.UserCommands

Methods

CanExecuteCommand(DataGridCommandId, object)

Determines whether the command, associated with the specified Id can be executed given the parameter provided.

Declaration

cs-api-definition
public bool CanExecuteCommand(DataGridCommandId id, object parameter)

Parameters

id

DataGridCommandId

The DataGridCommandId value to look for.

parameter

object

The parameter that is passed to the CanExecute and Execute methods of the command.

Returns

bool

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

cs-api-definition
public bool CanExecuteDefaultCommand(DataGridCommandId id, object parameter)

Parameters

id

DataGridCommandId

The DataGridCommandId value to look for.

parameter

object

The parameter that is passed to the CanExecute and Execute methods of the command.

Returns

bool

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

cs-api-definition
public bool ExecuteCommand(DataGridCommandId id, object parameter)

Parameters

id

DataGridCommandId

The DataGridCommandId value to look for.

parameter

object

The parameter that is passed to the CanExecute and Execute methods of the command.

Returns

bool

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

cs-api-definition
public bool ExecuteDefaultCommand(DataGridCommandId id, object parameter)

Parameters

id

DataGridCommandId

The DataGridCommandId value to look for.

parameter

object

The parameter that is passed to the CanExecute and Execute methods of the command.

Returns

bool

True if the command is successfully executed, false otherwise.