This is a migrated thread and some comments may be shown as answers.

[Solved] Tabbing out of EditTemplate causes grid to unselect items

3 Answers 64 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Inquisitor Jax
Top achievements
Rank 1
Inquisitor Jax asked on 08 Sep 2009, 02:17 PM
When tabbing from one cell to the next, and the last cell in a row is reached, pressing tab again seems to shift the focus to the next focusable control (even though it looks like the first cell of the next row is in edit mode).

It seems to me that the grid should remain the focused control, and the next row be selected? (which is not happening)

EDIT: The caret moved to the next row, but is seems that the row isn't highlighted as selected, and the selection_Changed event didn't fire.

3 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 10 Sep 2009, 07:16 AM
Hi Inquisitor Jax,

When tabbing from the last cell in a row the focus move to the first cell in the next row or if there are no more rows then the focus leaves the gridView. No Selection changed event is fired because you are editing the cells (not selecting new row).
We had a bug in the control - once you jump to the next edited row we cleared the selected row.
This has been fixed and the fix will be available in the next latest internal build.
Thank you for your feedback.

Best wishes,
Hristo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Inquisitor Jax
Top achievements
Rank 1
answered on 10 Sep 2009, 07:23 AM
Thanks Hristo.

What's the best way to force selection when the cell of the next row get's edited?

Here's what I have:
private void DataGrid_BeginningEdit(object sender, GridViewBeginningEditRoutedEventArgs e)
        {
            //When tabbing between cells, and tab goes to next row, make that row the selected record
            object dataItem = e.Cell.DataContext;
            _dgrdDetailRecords.SelectedItem = dataItem
        }

0
Nedyalko Nikolov
Telerik team
answered on 11 Sep 2009, 02:11 PM
Hi Inquisitor Jax,

The proposed solution works fine, so I think it is OK.
We will consider making such behavior default for the RadGridView.
Thank you for the feedback.

Greetings,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Inquisitor Jax
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Inquisitor Jax
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Share this question
or