Skip to content

Replies

0
Andrew A
Andrew A answered on Jul 13, 2020 2:48 PM

Hello, Martin. The sample that you provided does exactly what I need.
Your support is really awesome. Thank you.

0
Andrew A
Andrew A answered on Jul 3, 2020 8:19 AM

Hello, Teodosia. Thanks for reply. I need [rowSelection]=”‘multiple”, not even “single” – as mentioned in my question.
So far I have managed to achieve this goal only with adding of boolean flag for “cell-Selected” event in my js code and checking it in “onRowSelectionChange” handler.

<igx-grid

(onSelection)=”onCellSelection($event)”
(onRowSelectionChange)=”onRowSelectionChange($event)”>
</igx-grid>

js code:

cellSelected : boolean = false;

public onCellSelection(event) {
    this.cellSelected = true;
}

public onRowSelectionChange(event) {
    if (this.cellSelected){
       event.cancel = true;
       this.cellSelected = false;
   }
}

 

It looks quite ugly, of course. Would be nice to get the same result by adjustment of some grid settings.
Is it possible?