Zeros are trimmed

3 posts, 1 answers
  1. Ronald
    Ronald avatar
    2 posts
    Member since:
    Mar 2016

    Posted 07 Mar Link to this post


    At our company we created and maintain a large ASP.NET application which makes extensive use of the Telerik Rad controls. We use version 2013.3.1015.40.

    Currently we run into an issue with the RadEditor. It occurs in Internet Explorer 11 which is mainly used by one of our customers. If a line starts or ends with zeros (0) and the user presses enter, then those zeros are trimmed. It is very easy to reproduce in an empty web application project.

    Steps to reproduce:
     Step 1: Type first line starting with a zero or/and ending with a zero.
     Step 2: Press ENTER to move to the second line
     Step 3: See the zeros disappear in the first line.

    We also tried it with the latest version of the Rad controls and there the problem does not occur.

    We are aware that we are using an older version, but for our product it suits fine. We are afraid that replacing the Rad controls with the latest version will introduce new bugs or styling issues in our product. It would require a huge amount of QA work and probably a lot of rework.

    Can you please help us out? It seems like such a minor issue in the JavaScript code. Maybe you can provide us with a work around or a hotfix. We would greatly appreciate that.

  2. Answer
    Niko avatar
    383 posts

    Posted 08 Mar Link to this post

    Hello Ronald,

    You could try the following workaround:

    <script type="text/javascript">
        Telerik.Web.UI.Editor.Utils.trimWhitespace = function () { }

    The idea is to override the faulty implementation of the trimWhitespace method.

    Hope this helps.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
  4. Ronald
    Ronald avatar
    2 posts
    Member since:
    Mar 2016

    Posted 08 Mar in reply to Niko Link to this post

    Thanks a lot Niko!
Back to Top