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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Crud update mysql

Thread ID:

Created:

Updated:

Platform:

Replies:

143965 Apr 11,2019 08:39 PM UTC Apr 12,2019 09:13 AM UTC ASP.NET Core - EJ 2 1
loading
Tags: DataGrid
david coopermine
Asked On April 11, 2019 08:39 PM UTC

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



Hariharan J V [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon