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

[Solved] Focus issue with cells

1 Answer 101 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.
Ziv Friedman
Top achievements
Rank 1
Ziv Friedman asked on 23 Jan 2011, 08:47 AM
I have a RadGridView in my silverlight project, and inside this grid I created a few columns:
first column contains 2 buttons
second column contains file-name inside a text-block
third and fourth columns contain a RadComboBox
fifth column contains a user-control with multiple controls of varying kinds (depending on the selection in the combo-box column)

Now the problem I have is an issue of focus inside grid-cells and in the input-controls inside the fifth column, the cells always get the focus first and only after another tab presses do the focus move to the control inside the cell. Also in the fifth column the same problem with cell-focus happens, and also in each of the user-controls inside that cell there is the same problem with the user-control getting the focus before the input inside it gets the focus.

Is there a way (for both grid-cells and user-controls) to have the focus set to the first input control instead of first hving the container get the focus?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 27 Jan 2011, 09:54 AM
Hello Ziv Friedman,

Indeed this is an expected behavior since this kind of TAB navigation is natural for all system UI objects. I admit that this double TAB press is a little bit embarrassing, but unfortunately we faced a lot of problems with backwards navigation (via Shift + TAB) and if we focus first child element of the cell this will break backwards navigation. RadGridView has similar to your case logic but this could be seen when a cell enters into an edit mode. I could suggest you to handle RadGridView.CurrentCellChanged event and take some custom action.

Greetings,
Nedyalko Nikolov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Ziv Friedman
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or