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

MVC Grid EditorTemplateName

0 Answers 234 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 08 Sep 2012, 09:29 PM
When using editor templates by name like:

columns.Bound(x => x.Name).EditorTemplateName("String").Width(300);

Causes this to be rendered:

{"title":"Name","width":"300px","field":"Name","encoded":true,"editor":"%3cinput class=\"text-box single-line\" data-val=\"true\" data-val-required=\"Please provide a setting name.\" id=\"Name\" name=\"Name\" type=\"text\" value=\"\" /%3e%3cspan class=\"field-validation-valid\" data-valmsg-for=\"Name\" data-valmsg-replace=\"true\"%3e%3c/span%3e"}

Which then causes the grid, when inline editing to show the html encoded rather than endering the actual html it represents. I see an "encoded:true" but it doesn't seem to be treating the editor as encoded.

Thanks in advance.

EDIT: I blogged a workaround.

http://pknopf.com/blog/kendo-ui-editor-templates-for-asp-net 

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Share this question
or