I've added the custom click handler for Kendo grid's "Add new record" button, but JavaScript's preventDefault() function does not seem to work on it.
$('.k-header').on('click', '.k-grid-add', function(e) {
e.preventDefault();
e.stopPropagation();
// do something else
});
I would like that "Add new record" button does something else than adds the new row in grid.
Full code example: JSFIDDLE
This works
$('.k-grid-add').click(function(e) {
// do something else
return false;
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With