Cell Selection Modes

I was referring Selection Mode from your documentation.
https://ej2.syncfusion.com/angular/demos/?_ga=2.105521024.2033526877.1584098032-464028821.1584098032#/material/pivot-table/selection

Is it possible that I can have all the combinations together, so that I can handle followings? 
  • Individual Cell Selection
  • Entire Row Selection
  • Entire Column Selection


1 Reply

SN Sivamathi Natarajan Syncfusion Team March 16, 2020 07:25 AM UTC

 
Thanks for contacting Syncfusion support. 
 
We have checked the possibilities to achieve your requirements. You can select row and column selection combinations together by assigning “selectionSettings->mode” option to “Both”. With the option, individual value cells couldn’t be selected. If you select any value cell, then it will be selected all of its vertical and horizontal cells. 
 
 
Code Example: 
 this.gridSettings = { 
            columnWidth: 120, 
            allowSelection: true, 
            selectionSettings: { mode: 'Both', type: 'Multiple' }, 
        } as GridSettings; 
 
 
 
 
Meanwhile, we have prepared a sample for your reference. Please check the below sample link. 
 
 
We hope the above sample meets your requirements. 
 
Regards, 
Sivamathi. 


Loader.
Up arrow icon