I want to open modal popup when kendo-grid header is double clicked.
I tried the following:
headerAttributes: { 'ondblclick':'openPopup()' }
This way, the popup opens correctly but it also sorts the grid (default functionality of grid).
Please suggest how to prevent grid to sort when header is double clicked. I tried
ev.preventDefault();
return false;
but nothing works for me.
The easiest way:
$('#Grid').on("dblclick", "th.k-header", function () {
// do something
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.