This question is locked. New answers and comments are not allowed.
Hi,
I am using the Grid with an Ajax Edit, and I have an EditorTemplate that adds a TextArea to some of my columns when I switch to Edit.
The problem is, whenever we hit Enter, the Row is submitted via Ajax and I cannot figure out how to cancel it.
We like the feature for most field-types, but for the TextArea, we want to allow Carriage Returns in the field. Is there a way we can stop the Enter key submitting the Post on the TextArea?
Here is my EditorTemplate:
@model System.Web.Mvc.ViewUserControl<String> @Html.TextAreaFor(m => m, new { rows = 6, cols = 20, wrap = "hard", style="text-overflow:ellipsis;" }) Thanks,
Andy.