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

Problem with selectable option

3 Answers 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 05 Apr 2012, 09:08 PM
I find that the following code is causing script errors:

        $("#my-k-grid").kendoGrid({
            dataSource: {
                data: mydata
            },
            change: onMyRowSelected,
            selectable: "multiple, row",
            pageable: false,
            scrollable: true,
            navigatable: true,
            columns: mycols
        });

If I trap the exception, I get a TypeError: "Object doesn't support this action"

If i comment out the use of the selectable option, I don't get an error, however cells are selectable and I would prefer multiple row selection.

I am using the 2012Q1 build.  Everything was previously working correctly using the 2011Q3 build.

EDIT: I am trying to use the kendo chart elsewhere on my page.  Therefore I have the following included in addition to kendo.web.min.js:
kendo.core.min.js
kendo.data.odata.min.js
kendo.data.xml.min.js
kendo.data.min.js
kendo.dataviz.core.min.js
kendo.dataviz.vml.min.js
kendo.dataviz.svg.min.js
kendo.dataviz.chart.min.js

If I remove these script includes, I do not get the 'selectable' error however my chart doesn't load.

Previously When I was on 2011Q3 I would just include kendo.all.min.js but that is not available to me anymore.

3 Answers, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 10 Apr 2012, 04:32 PM
I made a JS fiddle showing my issue: http://jsfiddle.net/fDnFM/

(You may have to open up the console in your browser to see the error)
0
Mat
Top achievements
Rank 1
answered on 11 Apr 2012, 02:07 PM
I don't know if this is the problem, but according to the demos, you don't need a comma in the selectable option, i.e:
selectable: "multiple, row"
 
should just be
selectable: "multiple"
 
'row' is assumed. Otherwise, you'd use 
selectable: "multiple cell"

Maybe that'll help?
0
Mike
Top achievements
Rank 1
answered on 11 Apr 2012, 02:10 PM
No, unfortunately that doesn't have any affect.
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Mat
Top achievements
Rank 1
Share this question
or