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

Property NewLineBr As Boolean' is obsolete

1 Answer 55 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Diane
Top achievements
Rank 1
Diane asked on 20 Apr 2015, 09:55 PM

In a current radeditor that is embedded in a visual studio 2010 application, I am getting the warning message,

'This property is obsolete. Please, use the NewLineMode property instead.'

The original editor looked like:

<telerik:RadEditor ID="rEditor"
runat="server"
Skin="Windows7"
NewLineBr="false"
EditModes="Design,Preview,html"
Width="100%"
Height="800px"
OnClientLoad="OnClientLoad"
>

 I changed the editor to be:

<telerik:RadEditor ID="rEditor"
runat="server"
Skin="Windows7"
NewLineMode="0"
EditModes="Design,Preview,html"
Width="100%"
Height="800px"
OnClientLoad="OnClientLoad"
>

Now I am getting the error message 'cannot create an object of type 'Telerik.Web.UI.EditorNewLineModes' from its string representation 'false' for the 'NewLineMode' property'.

Thus would you tell me what I can do to solve the warning, 'Property NewLineBr As Boolean' is obsolete'?

1 Answer, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 21 Apr 2015, 02:09 PM
Hi Diane,

Indeed the NewLineBr property was obsoleted as of Q 2011 - you can find detailed information regarding the made change and the reasons behind it here: Controlling New Line Behavior

The Editor's NewLinesMode property expects as a value a member of the EditorNewLineModes enumeration. The currently available options are:
  • Br (value 1)  - Insert a BR element.
  • P (value 2)    - Insert a P (paragraph) element.
  • Div (value 4) - Insert a DIV element.

You can also find useful information on the available RadEditor public members here:  RadEditor Members

Regards,
Vessy
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Editor
Asked by
Diane
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or