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

is there an easy way to figure out where e.slice errors are occurring

2 Answers 57 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Doug
Top achievements
Rank 1
Doug asked on 15 Mar 2016, 09:54 PM

I am getting an "e.slice is not a function" error somewhere in my code, but where I'm not sure.

 

Is there some way to track down this, or could the kendo.all.min.js script provide a more meaningful error message?

2 Answers, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 18 Mar 2016, 12:06 PM
Hello Doug,

This error usually refers to the usage of the slice function for modifying arrays in JavaScript.  It is usually caused when a particular functionality expects a parameter of type Array and does not receive it.

One very common reason is that the Kendo UI Data Source instance is passed a JSON data which should be an array and is not.

If you have a license for the Kendo UI Professional library (kendo.all.min.js is part of the paid Kendo UI Pro distribution), you will be able to access the development, non-minified version of the library in your account. You can also use the open-source Kendo UI Core library and its non-minified version.

I hope that this helps.

Regards,
Anton Dobrev
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Doug
Top achievements
Rank 1
answered on 21 Mar 2016, 04:20 PM
I wasn't sure where to get the un-minified version so I took the min one and created my own using an online service.  That didn't help much.  But I did find it.  Turns out I had a kendo.data.DataSource object that was missing a requestEnd section.  It was a no-op I put in to try and solve another problem, so I didn't need to see the response.  
Tags
General Discussion
Asked by
Doug
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Doug
Top achievements
Rank 1
Share this question
or