This is a migrated thread and some comments may be shown as answers.

telerik:RadEditor - undefined error when clicking on controls

6 Answers 354 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chris Christensen
Top achievements
Rank 1
Chris Christensen asked on 21 Apr 2020, 10:54 AM

We're using a telerik:RadEditor and have just updated to .Net 4.7.2.

When we click on some of the controls, e.g. the "strip formatting" control, then we sometimes (not always) get the following error shown in the Browser's console "Cannot read property 'trim' of undefined".

We're running version 2014.1.403.35 of the Telerik.Web.UI.  We know that there are newer versions available but don't want to have to upgrade if this is not required.

Two errors are as follows:

---------------------------------------------------

Uncaught TypeError: Cannot read property 'trim' of undefined
    at Telerik.Web.UI.Editor.CommandList.FormatStripper (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:5286)
    at b.RadEditor.fire (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:9190)
    at Telerik.Web.UI.Editor.CommandList.StripAll.StripCss.StripFont.StripSpan.StripWord (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:5262)
    at b.RadEditor.fire (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:9190)
    at b.RadEditor._onToolClick (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:8636)
    at Array.<anonymous> (ScriptResource.axd?d=GZuwEaVOvbbWdhIPYEW2iXV706kRPa3GiaJu8HXrFo-6Dkpyvpw_mc90yZMYw-u19XjJoYxNmUJxy6oyY2r1Ei7PfTXYHJ_D_R5WJpvn6PEq4pTmFNPLO0gBhSW1K50hKayJPStEM8zP2Z1lo6eP3CkFkDQ1&t=ffffffff9a9577e8:5)
    at ScriptResource.axd?d=GZuwEaVOvbbWdhIPYEW2iXV706kRPa3GiaJu8HXrFo-6Dkpyvpw_mc90yZMYw-u19XjJoYxNmUJxy6oyY2r1Ei7PfTXYHJ_D_R5WJpvn6PEq4pTmFNPLO0gBhSW1K50hKayJPStEM8zP2Z1lo6eP3CkFkDQ1&t=ffffffff9a9577e8:5
    at Telerik.Web.UI.Editor.DefaultToolAdapter._raiseEditorEvent (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:3852)
    at Telerik.Web.UI.Editor.DefaultToolAdapter._onDropDownValueSelected (ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:3816)
    at Array.<anonymous> (ScriptResource.axd?d=GZuwEaVOvbbWdhIPYEW2iXV706kRPa3GiaJu8HXrFo-6Dkpyvpw_mc90yZMYw-u19XjJoYxNmUJxy6oyY2r1Ei7PfTXYHJ_D_R5WJpvn6PEq4pTmFNPLO0gBhSW1K50hKayJPStEM8zP2Z1lo6eP3CkFkDQ1&t=ffffffff9a9577e8:5)

---------------------------------------------------

and

---------------------------------------------------

ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:237 Uncaught Sys.ArgumentOutOfRangeException: Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: y
Actual value was 268.81817626953125.
    at Function.Error$create [as create] (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:237:15)
    at Function.Error$argumentOutOfRange [as argumentOutOfRange] (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:302:21)
    at Function$_validateParameterType [as _validateParameterType] (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:217:23)
    at Function$_validateParameter [as _validateParameter] (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:130:18)
    at Function$_validateParams [as _validateParams] (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:84:22)
    at Function.Sys$UI$DomElement$setLocation [as setLocation] (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=q3b8jhBaaaUVjdmDg_sw4nrFIKYD_ZXBnBKuMMRggtywaXsZR-WX-SrK85cfp6HO0ohnUIvJowAa-hyv3u316oBAhhvS3qnnTLe8OlYVJZZd96Oaz4GaxKav4p7ZCE8wWlqOKl24ypgpqcLdQHxop-0L8tmhc5wlmCWOMgADUZOoqK4n0&t=ffffffffecf19baa:4491:22)
    at Object.setLocation (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=bpIFcPnUkcYyn1Oas7QeqJT2ya_kbb63D72Bvn5GgMu2P5dJjlApzeU-Cms3QV1qxgTNoEFW6gf9_J5bEnRWID1R9NCGrOOZQVlvu5Ej0TkezzRaH_xo98ADcu_uoOpquFyKrg2&t=192abde7:314:47)
    at Telerik.Web.PopupBehavior._fixPositionInBounds (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=Z7NoM4_95v06tABtjkksmY5r-cIQNEuvG5B2q9ugNqnIEIgbVLxL5jY2pnajFDvWmGj4RqkhB8FXtuAJ8iEM--RmejtyD8ygNS-3I1Cr-x_FKyYqOdpmISxVMylcSvMa2jdqIOrTSPuRFiFR2g1tjk82Rt01&t=192abde7:347:10)
    at Telerik.Web.PopupBehavior.show (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=Z7NoM4_95v06tABtjkksmY5r-cIQNEuvG5B2q9ugNqnIEIgbVLxL5jY2pnajFDvWmGj4RqkhB8FXtuAJ8iEM--RmejtyD8ygNS-3I1Cr-x_FKyYqOdpmISxVMylcSvMa2jdqIOrTSPuRFiFR2g1tjk82Rt01&t=192abde7:304:12)
    at Telerik.Web.UI.EditorToolStrip._show (http://localhost/myWebsiteAdmin/ScriptResource.axd?d=aazrA2IzwYa-mybqnxJHNuwR7oLzVeGKajlCU16FhFRtnS--_IczI6StPES43dF5p3VhdeKc8qmWOjS62Imo4rAdY951oU0nH4rkwDlqPSiwQnJQKTAIVYx_IT3RLnPmHYf8LQ2&t=192abde7:2545:21)

 

6 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 21 Apr 2020, 01:23 PM

Hi Chris,

Thank you for reporting this error!

To be frank, you are the first to report it and we are not aware of it,

My recommendation is to test the latest version and upgrade to it, because this will ensure:

  • support for .NET 4.7.2 introduced in R2 2018 (version 2018.2.516) see here.
  • support for the latest browsers
  • security updates
  • stability.

You can find upgrade instructions here.

Please test and let me know how it goes.

Regards,
Rumen
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Chris Christensen
Top achievements
Rank 1
answered on 27 Apr 2020, 02:36 PM

Hi Rumen

Updating to the later version solved the problem - thank you so much.  However, the application is essentially in maintenance mode and our Telerik licence has expired. Since we're not doing any functional changes to the application, just fixing bugs and, as in this case, updating the .NET framework, is there a cheaper license to be had for applications that are in maintenance mode?

Thanks

0
Rumen
Telerik team
answered on 27 Apr 2020, 02:39 PM

Thank you for your confirmation that the problem is fixed in the latest version!

 

My colleagues from the sales team will contact you and offer you an upgrade path.

 

Regards,
Rumen
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Chris Christensen
Top achievements
Rank 1
answered on 30 Apr 2020, 12:07 PM
Great - many thanks Rumen
0
mu
Top achievements
Rank 1
answered on 29 Dec 2020, 08:22 AM

I got some issue with radeditor.

it was working fine with targetframwork 4.0. when I changed to 4.8 it got script error and not working properly. 
i used latest version 2020.3.1021.35

0
Rumen
Telerik team
answered on 04 Jan 2021, 07:59 AM

Hi Mu,

Happy New Year 2021!

Version 2020.3.1021.35 is built against .NET 3.5.

Please update the Telerik.Web.UI.dll and the other Telerik assemblies in the bin folder with the ones placed in the Bin45 folder of the R3 2020 SP1 (version 2020.3.1021) installation. You can download for example the Telerik_UI_for_ASP.NET_AJAX_2020_3_1021_Dev_hotfix.zip from https://www.telerik.com/account/product-download?product=RCAJAX and obtain the dlls from the Bin45 folder in the root of the archive.

If the problem still persists after the dlls update, please provide a simple working project which demo the error so that I can investigate it further.

Best Regards,
Rumen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Editor
Asked by
Chris Christensen
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Chris Christensen
Top achievements
Rank 1
mu
Top achievements
Rank 1
Share this question
or