New to Telerik UI for WPF? Download free 30-day trial

Implementation

The following article will go through the process of utilizing the built-in commands of RadVirtualGrid.

A straightforward approach for implementing the commands is to set them directly to a particular RadButton. Thus, once you click a single button, the predefined command will be executed.

Example 1: Using RadButton for triggering a built-in command

<telerik:RadButton Width="150" Content="Begin edit"  
       Command="telerik:RadVirtualGridCommands.BeginEdit"  
       CommandTarget="{Binding ElementName=VirtualGrid}" /> 

Note, that the target object needs to be explicitly set in the definition of the CommandTarget Property, specifying the RadVirtualGrid towards which the command has to be applied.

See Also

In this article