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

Kendo Editor, Set Query String to Null

0 Answers 42 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bepa
Top achievements
Rank 1
Bepa asked on 12 Aug 2012, 12:28 PM
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)
}

No answers yet. Maybe you can help?

Tags
Editor
Asked by
Bepa
Top achievements
Rank 1
Share this question
or