Double click for edit, how to keep focus on the clicked cell

Hello,

when edit a row in a grid with 20 columns,

if double click on column 16, it focus on the first column.


How to preventFocus and keep focus on the double clicked cell?

Thanks for helping


1 Reply

VK Vasanthakumar K Syncfusion Team October 9, 2024 05:13 AM UTC

Hi Massimo Magris,


Greetings from Syncfusion support.


Query: How can I prevent the focus from shifting to the first editable cell and instead keep it on the double-clicked cell?


You can achieve this by using the grid’s recordDoubleClick event and applying custom handling as mentioned in our below documentation. This allows you to prevent the default behavior where focus automatically moves to the first editable cell in the row. Instead, it will maintain focus on the cell that was double-clicked.


We’ve discussed this functionality in detail in our documentation. Please refer to the following link for more information:


Maintain focus on the double-clicked cell instead of auto-moving to the first cell: Syncfusion Documentation - Move focus to a specific cell during row editing


Regards,

Vasanthakumar K


Loader.
Up arrow icon