Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET MVC Telerik Editor does not work with form tag
    primarykey
    data
    text
    <p>I am trying to create a page which has Telerik Editor control. Use can create email templates using this screen. when I have put this Control in side @Html.BeginForm it works. I mean then i am able to get the value in my Controller . When I create the form tag and put this Editor inside that tag, it does not work. The value comes as null in my controller.</p> <h2>WORK :-</h2> <pre><code>@using (Html.BeginForm("Create", "Template", FormMethod.Post, new { @class = "ajax-form" })) { &lt;div class="file-contents"&gt; &lt;div class="editor-label"&gt; @Html.LabelFor(model =&gt; model.Contents) &lt;/div&gt; &lt;div class="editor-field"&gt; @(Html.Telerik().EditorFor(model =&gt; model.Contents) .HtmlAttributes(new { style = "width: 600px; height: 300px;" }) .Encode(false) ) @Html.ValidationMessageFor(model =&gt; model.Contents) &lt;/div&gt; &lt;/div&gt; } </code></pre> <h2>Does not work.</h2> <pre><code>&lt;form dojoType="dijit.form.Form" id="createTemplateForm" jsId="createTemplateForm" encType="multipart/form-data" action="@Url.Action("Create", "Template")" method="POST"&gt; &lt;div class="file-contents"&gt; &lt;div class="editor-label"&gt; @Html.LabelFor(model =&gt; model.Contents) &lt;/div&gt; &lt;div class="editor-field"&gt; @(Html.Telerik().EditorFor(model =&gt; model.Contents) .HtmlAttributes(new { style = "width: 600px; height: 300px;" }) .Encode(false) ) @Html.ValidationMessageFor(model =&gt; model.Contents) &lt;/div&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p>Any idea why is this happening? Please let me know.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload