About saveChanges method

2 Answers 20 Views
Grid
soyoung
Top achievements
Rank 1
Iron
soyoung asked on 08 May 2024, 07:50 AM | edited on 10 May 2024, 04:29 AM

Hello
I have a question while using saveChanges on grid
I want to generate sync for created, updated, and destroyed, is there a way?

If there is a create row and an update row, I want to run only create, is it possible?
After defining transport.create, transport.update as function and receiving only create data and doing e.success(data), update row exists and update function is also executed, and I wonder if I can return it here
If possible, create row should be in the saveChange state and update row should remain the same

2 Answers, 1 is accepted

Sort by
0
soyoung
Top achievements
Rank 1
Iron
answered on 10 May 2024, 04:28 AM | edited on 10 May 2024, 04:29 AM
.
0
Neli
Telerik team
answered on 13 May 2024, 05:51 AM

Hi,

In the saveChanges event handler, you can entirely prevent the applied changes by using the e.preventDefault. I could not think of a possible way to prevent only a specific action/request.

Let me know in case you have additional questions. 

Regards,
Neli
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
Grid
Asked by
soyoung
Top achievements
Rank 1
Iron
Answers by
soyoung
Top achievements
Rank 1
Iron
Neli
Telerik team
Share this question
or