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

Issue with CurrentCellStartEditing event

Hi there,

I'm facing problem with CurrentCellStartEditing and SaveCellInfo event combination when the active current cell behavior set to select all.(ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll;)

More info on the issue...

We are using grid in virtual mode and we dont allow the cell editing based on some condition. This condition will vary based on user action.  So when the condition is true, we set e.Cancel =  true in the CurrentCellStartEditing event. This is works fine as long as ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell and SaveCellInfo is not getting fired.

But when ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll is set, SaveCellInfo is getting fired even when currentcellstartediting event is set to cancel by setting e.Cancel = true.

I know we can do workaround for this to avoid this issue.. but is this right behavior?  Whatever the current cell behavior, savecellinfo should not fired when cellstartediting event is set to cancel?

5 Replies

VK Vinish Kumar K Syncfusion Team February 21, 2013 10:19 AM UTC

Hi Neeraj,

 

Thank you for your interested in Syncfusion products.

 

Query

Cancel the SaveCellInfo event in Virtual Grid.

We have analyzed your query ‘ Cancel the SaveCellInfo event when GridCellActivateAction.SelectAll. In our virtual grid, if you have used the GridCellActivateAction.SelectAll, the currentcell is modified when you have activated the currentcell.

 

Due to this behavior the current cells are activated and the saveCellInfo events are fired in your application. We can avoid this by any of workaround. To handle this please provide the sample code which is used to reproduce the issue in your end. We will provide the proper response.

 

Regards,

Vinish



NK Neeraj K February 21, 2013 10:52 AM UTC

Hi Vinish,

When the CurrentCellStartEditing event is cancelled. This means user is not allowed to edit current cell. In that case savecellevent should not be fired!  I've attached your modified same source code.  Please run this and try to enter any text in the grid..

Regards


CS_d82cf7d1.zip


VK Vinish Kumar K Syncfusion Team February 22, 2013 05:37 PM UTC

Hi Neeraj,

 

Thanks for your update.

 

We have deeply analyzed the sample file which is you have provided in your last update. We have confirmed that the issue with “ CurrentCellStartEditing cancel doesn’t works when the ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll  ” is a defect and we have logged a defect report. The fix for this issue will be available in Vol 2 of Syncfusion essential studio which is available in first week of May, 2013.

 

Regards,

Vinish 



NK Neeraj K February 23, 2013 05:24 PM UTC

Hi Vinish,

Thanks for confirming the issue.  Currently we dont have maintenance agreement with syncfusion, but we are licensed user for version 8 series.  Do we get any patch for this?

Regards


VK Vinish Kumar K Syncfusion Team February 25, 2013 11:29 AM UTC

Hi Neeraj,

 

Thanks for your update.

 

We recommend you to create incident in Direct trac in order to get a patch if you have an valid license. Without the valid license we couldn’t able to provide patch. Would you please contact salessupport@syncfusion.com for your license renewal? They will be able to provide further assistance in this regard.

 

Regards,

Vinish.


Loader.
Live Chat Icon For mobile
Up arrow icon