Code1:
var checkboxSelector = new Slick.CheckboxSelectColumn({
cssClass: "slick-cell-checkboxsel"
});
tempColumns.push(checkboxSelector.getColumnDefinition());
Code2:
tempGrid.setSelectionModel(new Slick.RowSelectionModel({selectActiveRow:false}));
tempGrid.registerPlugin(checkboxSelector);
I am using the above code to show the checkbox column.
How to hide checkbox only from header row of a slickgrid? (under red circle in the image)
Thanks.
grid.onHeaderRowCellRendered.subscribe(function (e, args) {
if (args.column.id === '_checkbox_selector') {
// do something if you want
} else {
$(args.node).empty();
$('<input type="text">')
.data('columnId', args.column.id)
.val(columnFilters[args.column.id])
.appendTo(args.node);
}
});
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