How to add a custom filter to data-grid-2 widget

I was trying to add a check-box filter to data-grid-2 header which can toggle. example “select all functionality”. once we check the check box all the check boxes in the next following rows should select.   Please help me if anyone knows how to add this feature.
0 answers