SfDataGrid - can the cells be made editable when the 'tab' key is pressed

Hi there,

I was wondering if it is possible for SfDataGrid cells to open for editing when the 'tab' key is pressed (mainly for UWP / Windows users with a keyboard). I know the user can press 'Tab' and then 'F2' to enter edit mode, but for speed of data entry it would be better if they can just press 'Tab' and then the next cell becomes editable. Is there any way to do this?

Thanks,

3 Replies

MK Muthu Kumaran Gnanavinayagam Syncfusion Team March 2, 2020 05:12 AM UTC

Hi Kevin, 
 
Thank you for contacting Syncfusion support. 
 
We have analyzed the reported query “Need to customize the SfDataGrid keyboard editing behavior” from our side. We would like to let you know that you can achieve your requirement by customizing the “Tab” key functionality by overriding ProcessKeyDown() method in custom selection controller. Please refer the below documentation for further details. 
 
 
You can programmatically begin the editing action by calling SfDataGrid.BeginEdit() method in override method when Tab key processed. For further details on programmatic editing please refer the below documentation. 
 
 
Please let us know if you require further assistance. 
 
Regards, 
G.Muthu kumaran.  



KE Kevin March 3, 2020 01:59 PM UTC

Brilliant, thank you for the support - I have a prototype working now thanks to your advice.


Best Regards


SS Sivaraman Sivagurunathan Syncfusion Team March 4, 2020 08:45 AM UTC

Hi Kevin, 

We are happy to hear, that your issue has been resolve. Please let us know if you need any further details on this. 

Regards, 
Sivaraman S

Loader.
Up arrow icon