IE11 & RadTextBox

7 posts, 0 answers
  1. Daniel
    Daniel avatar
    175 posts
    Member since:
    Feb 2009

    Posted 11 Nov 2013 Link to this post

    Hi, I've come across a bug, I think, with IE11 and RadTextBox. If I set the properties to MultiLine with a MaxLength (of any length) I am unable to paste into that input. It works fine on IE10 and below and also okay on FireFox and Webkit. Thanks. Daniel.
  2. Daniel
    Daniel avatar
    175 posts
    Member since:
    Feb 2009

    Posted 12 Nov 2013 Link to this post

    Hi, you can replicate the problem, under Windows 8.1 with IE11, by going to the RadTextBox Input demo and "Set Max Length" and then try to paste something into the Multi-line. Thanks. Daniel.

    http://demos.telerik.com/aspnet-ajax/input/examples/radtextbox/firstlook/defaultcs.aspx
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Deyan Enchev
    Admin
    Deyan Enchev avatar
    60 posts

    Posted 13 Nov 2013 Link to this post

    Hi Daniel,

    Thank you for contacting Telerik support.

    Unfortunately I have to confirm that this is an issue caused by changes introduced by Microsoft to IE11 and the API it uses. I have forwarded your report to our development department and they will be working on fixing this browser related behavior.

    Until this limitation gets fixed there is a workaround and it is using the following JavaScript function on your page:

    <script type="text/javascript">
       Telerik.Web.UI.RadInputControl.prototype._onTextBoxPasteHandler_ = Telerik.Web.UI.RadInputControl.prototype._onTextBoxPasteHandler;
                Telerik.Web.UI.RadInputControl.prototype._onTextBoxPasteHandler = function (e) {
                    if ($telerik.isSafari || document.selection) {
                        this._onTextBoxPasteHandler_(e);
                    }
                }
    </script>

    Make sure it is defined in <script> tags with the correct type ("text/javascript") set – as shown in the code snippet.

    Give this approach a try and let us know how it goes.

    Regards,
    Deyan Enchev
    Telerik
    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.
  5. Daniel
    Daniel avatar
    175 posts
    Member since:
    Feb 2009

    Posted 13 Nov 2013 Link to this post

    Thanks for the fix Deyan that worked. Daniel.
  6. msandrock
    msandrock avatar
    1 posts
    Member since:
    Jan 2007

    Posted 11 Dec 2013 Link to this post

    This did not work for me.
  7. DevTeam
    DevTeam avatar
    2 posts
    Member since:
    Sep 2013

    Posted 11 Dec 2013 Link to this post

    This didn't work for me either.


    JavaScript runtime error: Unable to get property 'prototype' of undefined or null reference

  8. Deyan Enchev
    Admin
    Deyan Enchev avatar
    60 posts

    Posted 16 Dec 2013 Link to this post

    Hello Robert and Mike,

    Could you please submit a regular support tickets which contain small but yet runnable project? This will help us further examine the root cause of the issue experienced and advise you further.

    Also we will understand why the approach working for Daniel is not applicable in your scenarios


    Regards,
    Deyan Enchev
    Telerik
    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017