Skip to content

Instantly share code, notes, and snippets.

@sirudog
sirudog / kendo-grid-highlight-locked-rows.js
Last active January 12, 2021 07:43 — forked from zakmac/kendo-grid-highlight-locked-rows.js
Enable full row highlight on Kendo grids with locked columns (excludes grid headers)
// About: By default, a Kendo grid with locked column(s) will only highlight a row on hover in either the scrollable
// columns, or locked columns; not both. Placing this binding in the $kGrid.dataBound() event will enable
// highlighting the entire row at once.
// Author: Zak MacDonald <http://github.com/zakmac>
// JSBin: http://jsbin.com/qenehifoli/edit?js,output
// Note: Since dataBound can be invoked multiple times, we unbind with $.off() before binding with $.on(), for better
// or worse; You may also want to unbind in the $kGrid.remove() event.
$('#my-k-grid').off('mouseenter mouseleave').on('mouseenter mouseleave', 'tr', function(event) {