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.)
Thanks in advance.
Nick
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