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

Uncaught TypeError: Cannot read property 'wrapper' of undefined

1 Answer 1422 Views
MultiColumnComboBox
This is a migrated thread and some comments may be shown as answers.
Miroslav
Top achievements
Rank 1
Miroslav asked on 17 Mar 2020, 07:40 AM

Hello. I'm testing MultiColumnComboBox and when loading the page I get "Uncaught TypeError: Cannot read property 'wrapper' of undefined" error. This is with CDN disabled. When I turn CDN on, everything runs OK. Telerik UI is updated to 2020 1 219 version. What am I missing or need to upgrade? I can't have CDN enabled on production server.

The exception happends in Telerik.Web.UI.WebResource.axd in c.RadMultiColumnComboBox._initializeKendoWidget:

K.kendoWidget=a(K._element).kendoMultiColumnComboBox(J).getKendoMultiColumnComboBox(); <-------- here the K.kendoWidget is undefined
var I=$telerik.$("#"+K.get_clientStateFieldID());
if(I){K.kendoWidget.wrapper.append();
 <-------- here it crashes

 

Miroslav
Top achievements
Rank 1
commented on 17 Mar 2020, 12:02 PM

I updated also kendo.all.min.js and jquery.min.js, but to no avail.

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 19 Mar 2020, 12:26 PM

Hello Miroslav,

Most probably the custom loading of the kendo library is affecting the behavior.

You can try to isolate the page to a simple MultiColumnComboBox declaration and a ScriptManager. Then, you can remove the custom settings and custom scripts one by one and check what is causing the issue. 

Meanwhile, you can check the following articles if they can help:

Regards,
Peter Milchev
Progress Telerik

Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.
Miroslav
Top achievements
Rank 1
commented on 24 Mar 2020, 02:58 PM

Peter, thanks for help. We found out that setting EnableScriptCombine to False (previously True) makes the application run without problems. So one of the custom scripts is probably the culprit and doesn't like combining. 
Tags
MultiColumnComboBox
Asked by
Miroslav
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or