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
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 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.