How to highlight (select) text in a cell on BeginEdit

Hello,

When the user clicks the mouse on an editable cell (Numeric cell type), the cursor goes somewhere in the existing value. If they type something, the new entries go in at the insertion point. This is different from what happens if the user tabs into the field - in that case, if the user types, the existing cell value is replaced.

Is it possible to select/highlight the cell text when the user mouse clicks the cell, so that if the user types, the existing value is fully replaced in that case as well? So far, I haven't been able to find any info on selecting the cell text.

Thanks for any help.


1 Reply

MA Mohanram Anbukkarasu Syncfusion Team January 3, 2022 12:32 PM UTC

Hi Stan, 

You can achieve your requirement to select/highlight entire text in the cell When the cell enters into edit mode by setting EditorSelectionBehavior property as SelectAll.  


Please refer this help documentation and let us know if you require further assistance in this.  

Regards, 
Mohanram A. 



Loader.
Up arrow icon