
<telerik:RadSplitter ID="splt" runat="server" Width="100%"> <asp:Repeater ID="rptSplitter" runat="server" OnItemDataBound="rptSplitter_ItemDataBound"><ItemTemplate><telerik:RadPane ID="pane" runat="server"><asp:Label ID="lblText" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"From") %>'></asp:Label><telerik:RadGrid ID="gv" runat="server" AutoGenerateColumns="false"><MasterTableView runat="server" DataKeyNames="ID"><Columns><telerik:GridBoundColumn DataField="ConsignmentNo" HeaderText="Consignment" SortExpression="ConsignmentNo"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="Customer" HeaderText="Customer" SortExpression="Customer"></telerik:GridBoundColumn></Columns></MasterTableView></telerik:RadGrid></telerik:RadPane></ItemTemplate><SeparatorTemplate><telerik:RadSplitBar runat="server"></telerik:RadSplitBar></SeparatorTemplate></asp:Repeater> </telerik:RadSplitter>I am using a radeditor in an application and we are just upgrading to a newer Telerik dll. I believe the dll that we were using prior was from Q3 of 2010 where the NewLineBr property was still in use. We are now trying to use the NewLineMode with the editor and then retrieve the html on the client using
radeditor.get_html(true)
The problem we are having is the text is coming back as if we were using the property NewLineMode="Br" instead of NewLineMode="P". When we use the escape sequence of ctrl + M, then the text that is returned is formatted as if we are using NewLineMode="P", but not when we just press the Enter key. Do we need to make additional changes to the RadEditor, or to some other setting to get the NewLineMode="P" functionality to work how we intend it to work?
Below is a simplified code snippet of the RadEditor we are using, I have removed the NewLineBr property and added the NewLineMode="P" property, but am not getting the expected results.
<telerik:RadEditor ID="Editor1" runat="server" EditModes="Design" Height="140px" NewLineMode="P"
. Font-Names="Arial" Font-Size="10pt" StripFormattingOptions="AllExceptNewLines" OnClientPasteHtml="OnEditorPasteHtml"
ConvertToXhtml="True" ToolbarMode="Default" >
Please let me know what additional changes may be needed.
Thank you for any help that you can offer and let me know if you have any questions.
Aaron
