Problem with validation when pressing arrow up key

Hello,

Problem when using the SfDatagrid:

I have a Sfdatagrid Control binded to a Datatable (import from SQL TABLE). 
This datagrid has restricted input values and shows an errormessage when the value is wrong.
example : 


I create this errormessage with the Eventhandler CurrentCellValidating : 

This works all fine, but when i press Arrow Up for validating my cell, then the Errormessage doesn't pop up. 
When I debug this, the code in CurrentCellValidating gets triggered but for some reason the Errormessage doesn't show and de value gets filled in wrong.
example:

My questions:
Is this a bug by Syncfusion? If yes, when will this be solved?
If this can't be solved by Syncfusion, is there any workaround?

Regards
Michiel

3 Replies 1 reply marked as answer

MA Mohanram Anbukkarasu Syncfusion Team March 1, 2021 12:39 PM UTC

Hi Michiel, 

Thanks for contacting Syncfusion support.  

We are little unclear with the replication of the reported issue. We suspect that the reported issue in validation occurs when a value is entered in the cell and arrow key is pressed (But works properly with other keys). But unfortunately, the reported scenario is working properly in our end. We have prepared a sample using DataTable and validation using CurrentCellValidating event and it is available in the following link for your reference.  


Please have a look at this sample and revert to us with details if the reported issue occurs in this sample. If reproduced, kindly revert to us with the Syncfusion product version you are using in your end. Otherwise please check the sample and let us know if we have included all the customization you have done in your sample or we missed any. Or try to reproduce the reported in this sample and revert to us with modified sample. It will be more helpful for us to find the exact cause for the issue and to provide a prompt solution.    

Regards, 
Mohanram A. 


Marked as answer

MI michiel March 1, 2021 02:18 PM UTC

Hello Mohanram,

I have been able to change the sample so the same error gets generated  :


(This property was there because initially my Itemsource was a collection)
Since LiveDataUpdateMode does not work with Sfdatagrid and Datatables. 
I can change this to default and my problem is solved without any effect on my application. 

Thanks for the quick reply!

Attachment: SfDataGrid_DataTable_v2_d4852d55.zip


MA Mohanram Anbukkarasu Syncfusion Team March 2, 2021 09:08 AM UTC

Hi Michiel, 

Thanks for the update.  

We are glad to know that the reported problem has been resolved at your end. Please let us know if you require any other assistance from us. We are happy to help you.  

Regards, 
Mohanram A. 


Loader.
Up arrow icon