I have written below code to prevent click event. Its working as expected with below code.
$(".k-grid-filter").on('mousedown', function (e) {
var editRow = $(this).closest(".k-grid").find(".k-grid-edit-row");
if (editRow.length > 0) {
e.preventDefault();
e.stopImmediatePropagation();
alert(e.type);
}
});
But I don't want to display alert pop-up. If I remove alert(), preventDefault() is not working.
$(".k-grid-filter").on('mousedown', function (e) {
var editRow = $(this).closest(".k-grid").find(".k-grid-edit-row");
if (editRow.length > 0) {
e.preventDefault();
e.stopImmediatePropagation();
}
});
Can anybody please help me to find is missing and what has to be done to make is work? Thanks in advance :)