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

EditorFor is read only

1 Answer 54 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kory
Top achievements
Rank 1
Kory asked on 05 May 2014, 04:22 PM
Hi,

I have a simple view:
@model RC.RMT.Data.ViewModels.MessageViewModel
@using Kendo.Mvc.UI
@using (Html.BeginForm("_CreateMessage", "Message", FormMethod.Post, new { id = "_CreateMessage" }))
{
<fieldset>
<div class="editor-field">
@(Html.Kendo().EditorFor(item => item.Body).Encode(false))
@Html.ValidationMessageFor(item => item.Body)
</div>
</fieldset>

and a simple model:
[DataType(DataType.Html)]
 [AllowHtml]
public string Body{ get; set; }

the editor displays fine but it is readonly.

Please Help

kwilson@peakrc.com

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 07 May 2014, 07:40 AM
Hi Kory,

I just replied in the other forum thread you opened, so I am closing this one.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Editor
Asked by
Kory
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or