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

How to detect the user is adding a new record on the top New Line

Hi,

I have a form with a datagrid inside it and a button to confirm the changes made by the user.
If the user adds a new record on the datagrid writing on the top row but he forgets to press the Return key to automatically add that record to the grid, if he clicks on the Save button, his changes (the added record) are lost.
Is there any way to solve this problem?

Is it possible to programmatically confirm the editing line if not confirmed with Return key by the user?
Or, in addition, is it possible to detect if the user is already adding a record before saving and close the form (with some datagrid property or method) ?

Thank you in advance.

Silvio

3 Replies

JG Jai Ganesh S Syncfusion Team November 16, 2016 02:17 AM UTC

Hi Silvio, 
We suspect that you want to add the add new row records programmatically. We already having a kb for this and please find this from below, 
If we misunderstood your requirement, please share the more details about your query. This would be more helpful for us to provide the prompt solution. 
Regards, 
Jai Ganesh S 



SI Silvio November 16, 2016 04:44 PM UTC

Thank you Ganesh. It has benn very helpful to me.


JG Jai Ganesh S Syncfusion Team November 17, 2016 03:51 AM UTC

Hi Silvio,  
 
Thank you for the update. 
 
Please let us know if you need further assistance on this. 
 
Regards, 
Jai Ganesh S 


Loader.
Up arrow icon