I have set the RadGrid Edit Mode to be "InPlace". I have also enabled the keyboard support on the RadGrid so that while in Edit mode, if I press enter after finished typing a line, the Update Command will fire. It works great in Single-Line RadTextBox, but not with Multi-Line RadTextBox, as in Multi-Line mode, when I press Enter, the caret move to the next line in the textbox instead of firing Update Command.
I tried Ctrl + Enter, Shift + Enter, Alt + Enter, but none of them can trigger the Update Command.
Please let me know if there any work-around on this issue.
5 Answers, 1 is accepted
RadTextBox does not have a special property, which controls the behavior of multiline textbox when the enter key is pressed. However, you can change the default behavior as use the following code:
All the best,
the Telerik team
I have tried as you suggested, but it didn't work, when I press Enter, the text is reverted back to its original value, and the grid still in edit mode.
If it works in yours, would you please attach for me a sample project?
Please find the attached sample project.
the Telerik team
I have tried to run your project.
The "Default Button", when be clicked manually, it's really update the grid. However, if we trigger-clicked it through pressing enter in the MultiLine Textbox, it's appeared that the "Default" button is clicked, but the grid is still in Edit Mode, and isn't updated.
Would you please check your project again?
function MyKeyPress(sender, args)
if (args.get_keyCode() == 13) //Detect if Enter Key Is Press While In TextBox
var grid = $find('RadGrid1_PatientRecord'); //The ID Of the RadGrid
var idx = grid._editIndexes; //Assume that only one record can be edit at a time
if (idx != null)
alert("Not Update"); //Let User Know if the update didn't work.
(I was trying to implement CTRL + Enter to enter new line like in FB Chat, However, I have just checked with my client, they said that they really don't need to enter new line in the textbox.)
Please go ahead and make this thread as "Answered"