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

KeyPress Event in RadTextBoxEditor

1 Answer 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sakthivel
Top achievements
Rank 1
Sakthivel asked on 03 Mar 2008, 10:55 AM

We are trying to get the Keyascii of Enter Key in RadTextBoxEditor. But we can't able to get that. See the Sample code below.

Private Sub radGvItemDetail_EditorRequired(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.EditorRequiredEventArgs) Handles radGvItemDetail.EditorRequired

If
colName = "txtItemName" Then

Dim txtItemNameEditor As New RadTextBoxEditor

e.Editor = txtItemNameEditor

If txtItemNameEditor IsNot Nothing Then

AddHandler txtItemNameEditor.KeyPress, AddressOf ItemNameKeyPress

End If

End If

End Sub

Private Sub ItemNameKeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)

If Asc(e.KeyChar) = Keys.Enter Then
.
.
.
End If

End Sub

Because we want to add a new row, by "Enter" Keypress  in GridViewTextBoxColumn

Regards,
Sakthivel

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 04 Mar 2008, 05:36 PM
Hi Sakthivel,

Thank you for contacting us.

This functionality is built-in RadGridView. Just use the NewRowEnterKeyMode property of RadGridView and set it to EnterMovesToNextRow.

Let me know, if you need further assistance.

Best wishes,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Sakthivel
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or