We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Excel like behaviour expected of syncfusion grid cells

How do i get my Grid Textbox Control behave like excel.
When i click on a cell, the cell shows me the cursor, while in excel, the cell only gets selected and only when i double click, the cell shows up the cursor.
I want the same excel like behaviour to be exhibited by syncfusion cell. i.e only when i double click, the blink cursor should show up and when i single click on a cell, the cell should just be selected.

Note : on double Click the cursor should point to the location where I have clicked.

I had tried below 2 ways, but did not work as expected
1. this.grid.Model.Options.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell;
2. this.grid.Model.Options.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell | | GridCellActivateAction.PositionCaret;

With this code change the cell will be selected on double click but cursor points to the right side of the content.

I found similar thread -  response does not work as exactly as cell behaviour.

Kindly do the needful asap.

1 Reply

DK Deepak Kumar Nandagopal Syncfusion Team April 7, 2015 02:21 PM UTC

Hi Basavaraj,

We have analyzed your query and based on your requirement we have prepared a sample by customizing the existing GridCellTextBoxRenderer in the CustomTextBoxCellRendererExt class in which you can able to point the cursor to the location you have clicked in the cell. You can download the sample in the below location.

Sample Location: http://www.syncfusion.com/downloads/support/forum/118735/CustomRenderer-664138469.zip


Deepak Kumar N

Live Chat Icon For mobile
Up arrow icon