Row selection on column click

I need to prevent row selection on click anywhere in the row because I am using checkboxes. I just want rowselection on only click on checkbox.

3 Replies 1 reply marked as answer

RS Rajapandiyan Settu Syncfusion Team June 11, 2020 04:56 AM UTC

Hi Namita, 

Greetings from syncfusion support. 

Query : I just want rowselection on only click on checkbox. 
 
In EJ2 Grid, we have the support to select a rows only through the checkbox. To do that we need to enable the API checkBoxOnly in the grid selectionSettings. Please refer the below code example and sample for more information.  
 
App.component.html 

<ejs-grid [dataSource]='data' allowPaging='true' [allowSelection]="true" [selectionSettings]="selectOptions"
  </ejs-grid> 
 
App.component.ts 
 
 this.selectOptions = { checkboxOnly: true }; 
 

 


Please get back to us if you need further assistance on this. 

Regards, 
Rajapandiyan S 


Marked as answer

NA Namita June 11, 2020 05:22 AM UTC

Its done, Thanks


RS Rajapandiyan Settu Syncfusion Team June 12, 2020 12:52 PM UTC

Hi Namita, 

We are glad that the provided solution resolved your requirement. 

Regards, 
Rajapandiyan S 


Loader.
Up arrow icon