This question is locked. New answers and comments are not allowed.
I have seen similar questions like this asked on this forum, but none seem to be answering what I need to have done. If someone could help or point me in the right direction, that would be great.
I am trying to display a grid that has 15 columns or so. Three of them are editable, the rest are not. Rather than creating an edit template, I chose to put text boxes in the cell template so that these editable cells are always "in edit mode". I do not want to have to edit the record first before being able to change values.
The problem I am encountering is that the tab key doesn't seem to work right. When you come from a previous cell that is just a text block, it will tab to the cell itself rather than the text box it contains. You have to hit tab once again in order for it to select the textbox. Setting the entire grid to read only didn't help either.
What can I do to force the focus to the text box when the cell has focus?
I am trying to display a grid that has 15 columns or so. Three of them are editable, the rest are not. Rather than creating an edit template, I chose to put text boxes in the cell template so that these editable cells are always "in edit mode". I do not want to have to edit the record first before being able to change values.
The problem I am encountering is that the tab key doesn't seem to work right. When you come from a previous cell that is just a text block, it will tab to the cell itself rather than the text box it contains. You have to hit tab once again in order for it to select the textbox. Setting the entire grid to read only didn't help either.
What can I do to force the focus to the text box when the cell has focus?
<
telerik:RadGridView
x:Name
=
"uxMasterPricingGrid"
RowIndicatorVisibility
=
"Collapsed"
ShowGroupPanel
=
"False"
IsReadOnly
=
"true"
AutoGenerateColumns
=
"false"
Grid.Row
=
"1"
TabIndex
=
"0"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Unit Cost"
TextAlignment
=
"Right"
HeaderTextAlignment
=
"Center"
MinWidth
=
"50"
>
<
telerik:GridViewDataColumn
Header
=
"Base Price"
TextAlignment
=
"Right"
HeaderTextAlignment
=
"Center"
MinWidth
=
"50"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
TextBox
Text
=
"{Binding BasePrice.Current, Mode=TwoWay}"
BorderThickness
=
"0"
Background
=
"Transparent"
Foreground
=
"{Binding BasePrice.Foreground}"
LostFocus
=
"BasePrice_LostFocus"
TextChanged
=
"BasePrice_TextChanged"
></
TextBox
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
: : :