Is there a way to make the Enter key act like the Tab key for the RadDropDownList? I have tried the following methods and none actually advance to the focus:
I also tried alternatives of the above:
The only way to advance the focus is to use the Tab key. In case it makes any difference, I have AutoComplete set to SuggestAppend.
Is there another way to make the Enter key act like the Tab key?
private
void
dropDownList_KeyDown(
object
sender, KeyEventArgs e)
{
if
(e.KeyData == Keys.Enter)
{
this
.ProcessTabKeys(
true
);
}
}
private
void
dropDownList_KeyPress(
object
sender, KeyPressEventArgs e)
{
if
(e.KeyChar == (
char
)Keys.Enter)
{
this
.ProcessTabKeys(
true
);
}
}
I also tried alternatives of the above:
private
void
dropDownList_KeyDown(
object
sender, KeyEventArgs e)
{
if
(e.KeyCode == Keys.Enter)
{
nextDropDownList.Focus();
e.Handled =
true
;
}
}
private
void
dropDownList_KeyPress(
object
sender, KeyPressEventArgs e)
{
if
(e.KeyChar == (
char
)Keys.Enter)
{
nextDropDownList.Focus();
e.Handled =
true
;
}
}
The only way to advance the focus is to use the Tab key. In case it makes any difference, I have AutoComplete set to SuggestAppend.
Is there another way to make the Enter key act like the Tab key?