This question is locked. New answers and comments are not allowed.
I am having a view with the form in it created using Html.BeginForm().
The view embeds partial views in it. Please have a look at this code.
Out of several partial views, one uses the RadEditor. Below is the code of partial view that contains RadEditor.
Please note that <form> is used in the above code.
The situation is that the form generated using Html.BeginForm() wraps the form inside above partial view.
The problem here is that, if i remove <form> the editor is not shown properly.
If i use the <form> the data in my main view is not collected.
Can you please provide the solution for this.
The view embeds partial views in it. Please have a look at this code.
<div class="tab"><br> <%Html.BeginForm("Create", "Scanner", FormMethod.Post, new { id = "createscanner" });%><br><br> <div id="input" class="scanner"> <br> <h3>Input Parameters</h3><br> <h5>Define input parameters required for a <%=DataOrModel%>.</h5><br> <hr /><br> <%<br> Html.RenderPartial("~/Views/Scanner/ScannerParameters.ascx", new ViewDataDictionary(Model.InputParameters) { {"Type", "InputParameters"} } );<br> %><br> </div><br> <div id="output" class="scanner"> <br> <h3>Output Parameters</h3><br> <h5>Define output parameters required for a <%=DataOrModel%>.</h5><br> <hr /><br> <% <br> Html.RenderPartial("~/Views/Scanner/ScannerParameters.ascx", new ViewDataDictionary(Model.OutputParameters) { { "Type", "OutputParameters" } });<br> %><br> </div><br><br>.....<br><%Html.EndForm();%><br></div>Out of several partial views, one uses the RadEditor. Below is the code of partial view that contains RadEditor.
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<xxx.StyleModel>" %><br><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><br><%@ Import Namespace="xxx.Models" %><br><br><form id="form1" runat="server"><br> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager><br> <telerik:RadEditor ID="RadEditor1" runat="server" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd" Width="710px"><br> <Tools><br> <telerik:EditorToolGroup><br> <telerik:EditorTool Name="Bold" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="Italic" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="Underline" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="FontName" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="FontSize" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="ForeColor" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="BackColor" /><br> <telerik:EditorSeparator /><br> <telerik:EditorToolStrip Name="InsertLink"><br> <telerik:EditorTool Name="InsertLink"/><br> <telerik:EditorTool Name="LinkManager" /><br> <telerik:EditorTool Name="Unlink" /><br> </telerik:EditorToolStrip><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="InsertUnorderedList" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="InsertOrderedList" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="Indent" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="Outdent" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="JustifyLeft" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="JustifyCenter" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="JustifyRight" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="AjaxSpellCheck" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="Print" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="Undo" /><br> <telerik:EditorSeparator /><br> <telerik:EditorTool Name="Redo" /><br> </telerik:EditorToolGroup><br> </Tools><br> <Snippets></Snippets><br> <Content></Content><br> </telerik:RadEditor><br></form>Please note that <form> is used in the above code.
The situation is that the form generated using Html.BeginForm() wraps the form inside above partial view.
The problem here is that, if i remove <form> the editor is not shown properly.
If i use the <form> the data in my main view is not collected.
Can you please provide the solution for this.