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

Small bug in grid's map file

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Joel asked on 13 Dec 2013, 08:58 PM
This isn't a big deal, but thought I would bring it to attention.

When creating a grid using MVVM and if you forget to set the data-selectable="multiple,rows" or even data-selectable="true" on a grid, you can get the wrong error message in Chrome's Console when you try to select all rows using javascript. Instead of telling you that the error occurred in kendo.grid.js on line 2057 because the property "objects" doesn't exist, it tells you that the error occurred in kendo.treeview.js on line 964 (or 966).

The code to reproduce is here, but I can only get the map file details when using Chrome. Click on the button that runs "Select All" and it won't select in the jsFiddle example, but if you were to run it in Chrome, it spits out a TypeError with the (wrong) information about file and line number.
http://jsfiddle.net/joelpenner/cCaz3/

Again, not that big of a deal, but still something to know about.

1 Answer, 1 is accepted

Sort by
0
Mihai
Telerik team
answered on 16 Dec 2013, 10:44 AM
Hello,

That is weird.  I can indeed reproduce it at jsfiddle.net, but when I tried locally by loading either kendo.grid.min.js (via RequireJS) or kendo.web.min.js I get the correct error and location in both cases:

Uncaught TypeError: Cannot read property 'options' of undefined kendo.grid.js:2058

It could be that the hosted source map is broken.

Regards,
Mihai
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Joel
Top achievements
Rank 1
Answers by
Mihai
Telerik team
Share this question
or