Unplanned
Last Updated: 28 Feb 2025 14:52 by ADMIN
Graeme
Created on: 28 Feb 2025 09:14
Category: GridView
Type: Bug Report
0
RadGridView: GridViewCommandColumn using keyboard navigation does not select the desired button

Steps to recreate:

  • click on the button on the top row
  • press the down key on the keyboard
  • Press Space key to select new button, the button on the top row is clicked
1 comment
ADMIN
Nadya | Tech Support Engineer
Posted on: 28 Feb 2025 14:52

Hello, Graeme,

Thank you for reporting this.

You can use the following workaround until a fix gets ready:

this.radGridView1.CurrentRowChanged += RadGridView1_CurrentRowChanged;
private void RadGridView1_CurrentCellChanged(object sender, CurrentCellChangedEventArgs e)
{
    if (e.CurrentCell.ColumnInfo is GridViewCommandColumn && e.NewCell != null)
    {
      GridCommandCellElement newCell =  this.radGridView1.TableElement.GetCellElement(e.NewCell.RowInfo, e.NewCell.ColumnInfo) as GridCommandCellElement;
        newCell.CommandButton.Focus();
    }
}

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!