I'd like that when the user press "Enter" on my RadNumericTextBox it would be the same as if he would give a click on a especific button.
The definition of my RadNumericTextBox is:
The definition of my RadNumericTextBox is:
<telerik:RadNumericTextBox ID="radMyNumericTextBox" runat="server" Width="132px">
<ClientEvents OnKeyPress="radMyNumericTextBox_KeyDown" />
</telerik:RadNumericTextBox>
My code is:
private void radMyNumericTextBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
btnMyButton_Click(sender, e);
}
}
Note: Actually if I press "Enter" in the RadNumericTextBox close's my window.
Any help?
Thank you very much.
David