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.
6 Answers, 1 is accepted
0
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
answered on 12 Nov 2013, 11:28 PM
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
http://demos.telerik.com/aspnet-ajax/input/examples/radtextbox/firstlook/defaultcs.aspx
0
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:
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
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.
0
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
answered on 13 Nov 2013, 10:20 PM
Thanks for the fix Deyan that worked. Daniel.
0
msandrock
Top achievements
Rank 1
answered on 11 Dec 2013, 12:37 PM
This did not work for me.
0
DevTeam
Top achievements
Rank 1
answered on 11 Dec 2013, 04:41 PM
This didn't work for me either.
JavaScript runtime error: Unable to get property 'prototype' of undefined or null reference
0
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
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.