MultilIne text Problem in different browsers

3 posts, 0 answers
  1. Lalu
    Lalu avatar
    9 posts
    Member since:
    Jun 2012

    Posted 14 Jun 2013 Link to this post

    Multiline textbox with maximum length is working in latest version of telerik but i have occurred a problem.Set maximum length in multiline textbox as 10  and enter the text as below


    after entering value check length of the textbox text ,It shows 12.This problem occurs in Mozilla and in IE.But it is working fine in chrome.I got a reply for this problem.

    Telerik.Web.UI.RadInputControl.prototype._escapeNewLineChars_org = Telerik.Web.UI.RadInputControl.prototype._escapeNewLineChars;
    Telerik.Web.UI.RadInputControl.prototype._escapeNewLineChars = function (text, replaceWith)
     return this._escapeNewLineChars_org(text, "  ");

    Can i set this property dynamically from server side,becuase i have to create custom control based on multiline text box.So i cant include these script in each page.Expecting a fast reply from you.
  2. Viktor Tachev
    Viktor Tachev avatar
    2497 posts

    Posted 19 Jun 2013 Link to this post

    Hello Shibin,

    Currently different browsers and browser versions are using different number of characters for new line. The RadTextBox takes this difference into account and on the server the new line is always counted as two characters. However this is not always so on the client side. Because of this, the fix you have should be implemented on the client. This way the behavior of the RadTextBox would be consistent in all browsers.

    The developers are aware of this issue and a fix will be implemented as soon as possible. You could follow the status of the issue here.

    I hope this information would be useful to you.

    Viktor Tachev
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. Lalu
    Lalu avatar
    9 posts
    Member since:
    Jun 2012

    Posted 19 Jun 2013 Link to this post

    Thanks for working on this issue.
Back to Top