Hi,
I am attempting to use the Editor control as an EditorTemplate for HTML fields in my MVC4 application. The editor will display fine, but for some reason the code will never update and the value always comes back up the Model as null. Any ideas what I am doing wrong?
Here is the code for Edit.cshtml:
<script type="text/javascript">
$(document).ready(function () {
$("#Body").kendoEditor();
});
</script>
@using (Html.BeginForm())
{
@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.ID)
@Html.TextAreaFor(model => model.Body, new { style = "width:600px;height:200px" })
@Html.ValidationMessageFor(model => model.Body)}
I am attempting to use the Editor control as an EditorTemplate for HTML fields in my MVC4 application. The editor will display fine, but for some reason the code will never update and the value always comes back up the Model as null. Any ideas what I am doing wrong?
Here is the code for Edit.cshtml:
<script type="text/javascript">
$(document).ready(function () {
$("#Body").kendoEditor();
});
</script>
@using (Html.BeginForm())
{
@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.ID)
@Html.TextAreaFor(model => model.Body, new { style = "width:600px;height:200px" })
@Html.ValidationMessageFor(model => model.Body)}