Property NewLineBr As Boolean' is obsolete

2 posts, 1 answers
  1. Diane
    Diane avatar
    6 posts
    Member since:
    Sep 2014

    Posted 20 Apr 2015 Link to this post

    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'?

  2. Answer
    Vessy
    Admin
    Vessy avatar
    1382 posts

    Posted 21 Apr 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top