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

Row selection not working

1 Answer 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 22 Oct 2012, 07:49 AM
When clicking a row, nothing happens. No error is throws, and no row is being selected.
I tried both selectable: "row" and selectable: "row multiple".

Is there anything wrong with this code ?

($codesListContainer is a reference to the <div> where the grid will be placed.)

$codesListContainer.kendoGrid({
    dataSource: {
        type: "json",
        transport: {
            read: '@Url.Action("AllCodes", "Dossier")'
        },
        aggregate: [
            { field: 'TotalPrice', aggregate: 'sum', format: "{0:C}" }],
        pageSize: 10
    },
    selectable: 'row',
    detailInit: detailInit,
    columns: [
        { field: 'Number', title: 'Nr.', width: '10%' },
        { field: 'Title', title: 'Title', width: '60%' },
        { field: 'UnitPrice', title: 'Price per unit', width: '10%' },
        { field: 'NumberOfUnits', title: 'Number of units', width: '10%' },
        { field: 'TotalPrice', title: 'Total', format: "{0:C}", footerTemplate: '#=kendo.format("{0:c}", sum)#', width: '10%' }
    ],
    pageable: true,
    scrollable: false,
    change: function () {
        alert("change");
    }
});

Thanks in advance.

Nick

1 Answer, 1 is accepted

Sort by
0
Nick
Top achievements
Rank 1
answered on 22 Oct 2012, 11:34 AM
Apparently I included a newer version of jQuery.
With 1.7.2 it works.

Sorry :)
Tags
Grid
Asked by
Nick
Top achievements
Rank 1
Answers by
Nick
Top achievements
Rank 1
Share this question
or