Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
On click on grid's cell need to select only clicked cell, not entire row
posted

On click on grid's cell the entire row of the grid (with clicked cell) is selected completely. 

But I need to select only the clicked cell, row must be stay unselected. How to achieve this?

Here is my grid

 <igx-grid igxPreventDocumentScroll #grid1 [data]="data" 
    [width]="'100%'" [height]="'100%'" 
    [autoGenerate]="false" 
    [displayDensity]="'cosy'"
    [rowSelection]="'single'"
    [columnHiding]="true"
    [primaryKey]="'id'"
    paste-handler (onDataProcessed)="dataPasted($event)"
    (onFilteringDone)="filteringDone($event)"
    (onSortingDone)="sortingDone($event)">
</igx-grid>
Parents
  • 1560
    Offline posted
    Hello,
    Thank you for the provided code snippet. It helped me a lot.
    My suggestion  for achieving your requirement is setting the rowSelection to none
    [rowSelection]="'none'"
    Alternatively,  you could remove it since none is the default value for the rowSelection input.
    Here could be found a sample application that demonstrates this behavior. Please test it on your side and let me know if I may be of any further assistance.

    Sincerely,
    Teodosia Hristodorova
    Associate Software Developer
Reply Children