onHeaderContextMenu: function(e, field){ if (!$(e.target).closest('.datagrid-filter-row').length){ e.preventDefault(); // ... } }