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

this.select()[i] is undefined in ie but working in ff or chrome

2 Answers 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cagatay
Top achievements
Rank 1
Cagatay asked on 21 Dec 2011, 12:44 AM
Below code is working in ff and chrome but throwing error in ie

gridMain = $("#gridMain").kendoGrid({
    dataSource: dsMain,
    height: 500,
    filterable: true,
    scrollable: true,
    pageable: false,
    selectable: 'row',
    sortable: true,
    columns : [
                {
                    field: "dt",
                    title: "Tarih",
                    width: "120px"},
                {
                    field: "defi",
                    title: "Açıklama"},
                /*{
                    field: "amn_tot",
                    title: "Toplam Tutar",
                    width: "120px"},*/
                {
                    field: "id",
                    title: "İşlemler",
                    template: actionTemplate,
                    width:  "130px"}
                ],
 
    change : function(e) {
        selectedRows = [];
        for (var i = 0, l = this.select().length; i < l; i++) {
            var xid = this.select()[i].dataset.id;
            selectedRows.push(xid);
        };
         
        //console.log(selectedRows);
         
        /*
        console.log(this.dataSource.view()[this.select()
                                           .index()]["id"]);
        */                                
    }
});    

Am I missing sth ?

2 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 21 Dec 2011, 01:50 PM
Hello Cagatay,

This is because DOMElement.dataset is not supported in IE.

Regards,
Nikolay Rusev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Cagatay
Top achievements
Rank 1
answered on 21 Dec 2011, 02:56 PM
ok. thx.
Tags
Grid
Asked by
Cagatay
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Cagatay
Top achievements
Rank 1
Share this question
or