HOW TO DISABLE GRID SELECTION ON MOVE UP / DOWN ?

Hi,

i have a problem in grid selection checkbox, the problem is when i check multiple checkbox selection then i press button move up / down, it will reset the selection to current row selected. I have 2 questions :

1. How to disable selection checkbox on move up / down in grid ?
2. How to disable grid selection only on move up / down, and only allow grid selection when i click some rows.


Please help me

Regards,


Tony

1 Reply 1 reply marked as answer

BS Balaji Sekar Syncfusion Team January 20, 2021 01:22 PM UTC

Hi Tony, 
 
Thanks for your valuable patience. 
 
Based on your query we understand that you want prevent the selection by key up/down actions and Grid row should selection when row click action alone. We have achieved your query in applyDownUpKey internale function of selectionModule it will trigger when key up/down action and it will prevent the default select/deselect actions. 
 
Please refer the below code example and sample for more information. 
[app.compoent.ts] 
load() { 
    (this.grid as any).selectionModule.applyDownUpKey = function( 
      rowIndex, 
      cellIndex 
    ) { 
      return
    }; 
  } 
 
 
 
Please get back to us, if you need further assistance. 
 
Regards, 
Balaji Sekar 


Marked as answer
Loader.
Up arrow icon