or
function
onDataBound(e) {
var
grid = $(
"#VINGrid"
).data(
"kendoGrid"
);
$(grid.tbody).on(
"keydown"
,
"td"
,
function
(e) {
if
(e.keyCode == 9)
{
var
row = $(
this
).closest(
"tr"
);
var
rowIdx = $(
"tr"
, grid.tbody).index(row);
var
colIdx = $(
"td"
, row).index(
this
);
var
count = grid.dataSource.total();
if
(rowIdx == count-1 && colIdx == 6)
{
grid.addRow();
}
}
});
}
<
select
data-value-field
=
"Id"
multiple
=
"multiple"
data-placeholder
=
"Select Category..."
data-text-field
=
"Title"
data-item-template
=
"#: data.FullPath #"
data-role
=
"multiselect"
data-type
=
"HierarchicalTaxa"
>
change: function (e) {
this.closeCell();
},
Hi,
The documentation states the following about the change event: Fired when the user selects a cell or event in the scheduler.
During testing I discovered that the change event is raised whenever something on the scheduler is clicked i.e.
I tried to filter on the e.slots.length property of the event arguments, but this isn't robust enough. When you accidently select a slot and click "Show business hours", the e.slots array is not reset.