Telerik UI for Windows 8 XAML

Note

This command is associated with the Tap event that occurs over a group header in the flyout.

Here's an example where we first create a class that inherits from the DataGridCommand one and then add it to the RadDataGrid.Commands collection

C# Copy imageCopy
public class CustomFlyoutGroupHeaderTap : DataGridCommand
{
    public CustomFlyoutGroupHeaderTap()
    {
        this.Id = CommandId.FlyoutGroupHeaderTap;
    }

    public override bool CanExecute(object parameter)
    {
        //put your custom logic here
        return true;
    }

    public override void Execute(object parameter)
    {
        var context = parameter as FlyoutGroupHeaderTapContext;
        //put your custom logic here
    }
}

And the XAML declaration:

XAML Copy imageCopy
<telerikGrid:RadDataGrid>
    <telerikGrid:RadDataGrid.Commands>
        <local:CustomFlyoutGroupHeaderTap/>
    </telerikGrid:RadDataGrid.Commands>
</telerikGrid:RadDataGrid>