import { parentsUntil } from '@syncfusion/ej2-angular-grids';
onSagaMCGridRowSelected(args: RowSelectEventArgs) {
console.log('onSagaMCGridRowSelected', args)
//based on the target we can differentiate the header and row checkboxes
if (parentsUntil(args.target, 'e-headercell')){
console.log('Headercheckox selected');
}
else {
console.log('Rowcheckox selected');
}
}
onSagaMCGridRowDeselected(args: RowDeselectEventArgs) {
//based on the target we can differentiate the header and row checkboxes
console.log('onSagaMCGridRowDeselected', args)
if (parentsUntil(args.target, 'e-headercell')){
console.log('Headercheckox deselected');
}
else {
console.log('Rowcheckox deselected');
}
}
|