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

Crud update mysql

Hello, I'm new to ASP.NET. Congratulations on the great tool.
I have 2 question.
I created a project that uses Grid and editing via Dialog. I am using the mysql database as in the example below (attachment).
1 - When I edit it changes on the grid. I would like to know how to change also in the database. I could not capture the event. Could you change the example below so I have an idea how to do it?
2 - How to add other buttons like (New, Save, edit, update)?
sample--> https://drive.google.com/open?id=1hMiVNv3ljoYSofpUvNKzmikQPIqpxISD



1 Reply

HJ Hariharan J V Syncfusion Team April 12, 2019 09:13 AM UTC

Hi David, 
 
Greetings from Syncfusion. 
 
Query: When I edit it changes on the grid. I would like to know how to change also in the database. I could not capture the event. Could you change the example below so I have an idea how to do it?
 
We have validated your query with the provided sample(code snippets). From you code snippets, you have provided data to grid as local dataSource that’s why the changes are not reflected in server side. You need to provide grid data as remote dataSource and you need to handle the editing actions(such as add, update, delete operations) in controller side. Please refer the below documentation for your reference. 
 
                                             https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/#handling-on-demand-grid-actions  
                                             https://ej2.syncfusion.com/aspnetcore/documentation/grid/edit/#crud-url 

We have prepared a sample based on your requirement. Please find the sample in below link. 


Query: How to add other buttons like (New, Save, edit, update)?We are unclear about this requirement. Could you please share the below details, it will be helpful to provide a better solution.·       Are you want to perform editing operations(like add, edit, update) by using external buttons?If this is not your requirement, could you please share more information regarding your requirement.Regards,Hariharan

Loader.
Live Chat Icon For mobile
Up arrow icon