kendo grid 'save' event recursive call problem

0 Answers 137 Views
Grid
jayuob
Top achievements
Rank 1
jayuob asked on 09 Nov 2021, 07:50 AM

When handling cell data with model.set when "save" event is bound to kendo grid.

model.set calls the "save" event again. Is it possible to prevent model.set from calling a "save" event or counting cell data?

When I use methods like model.property = value to process the data I need to refresh() and

it won't show in the grid unless I initialize the desired focus, so I'd like to find another way.

I'm not good at writing in English, so please forgive me.

Thank you

Nikolay
Telerik team
commented on 12 Nov 2021, 07:02 AM

Hi Jayuob,

Calling the set() method does not save the data but only updates it and the changes are pending until the sync method is invoked. Thus, the set() does not trigger the save Grid event. Please refer to the following Dojo I prepared demonstrating this:

Feel free to modify it to showcase the problem so I can advise further.

Regards,

Nikolay

No answers yet. Maybe you can help?

Tags
Grid
Asked by
jayuob
Top achievements
Rank 1
Share this question
or