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

[Solved] Textarea in Grid Inline Edit Ajaz Posting on "Enter"

2 Answers 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew
Top achievements
Rank 1
Andrew asked on 11 Feb 2011, 06:31 AM

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.

2 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 11 Feb 2011, 11:01 AM
Hello Andrew,

Indeed you are correct in you observation. However, I'm happy to inform you that if have addressed this issue, thus I'm attaching you an  internal build which contains the fix.

Regards,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Andrew
Top achievements
Rank 1
answered on 11 Feb 2011, 01:01 PM

Perfect Rosen!

Thank-you very much.

Awesome support. This is why we choose Telerik tools.

Regards,

Andy.

Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or