This is a migrated thread and some comments may be shown as answers.

UpdateHandler does not get triggered when entering first value in grid

2 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Miriam
Top achievements
Rank 1
Veteran
Miriam asked on 13 Nov 2020, 09:03 AM

Hi, 

now I discovered another Problem depending on my last Thread: https://www.telerik.com/forums/avoid-multiple-calls-of-async-updatehandler-when-pressing-enter

Your solution works fine as long as I do not enter the very first value in my grid and it makes no difference which row is changed.
When I enter the first value then the UpdateHandler does not get triggered. Only my ChangeHandler.

Do you have an idea why this is happening?

2 Answers, 1 is accepted

Sort by
0
Joana
Telerik team
answered on 13 Nov 2020, 04:25 PM

Hello Miriam,

I just replied in your current thread regarding the UpdateHandler. I am pasting the reply here for your convenience, and I suggest that we continue the communication in a single thread:

It seems that I have missed this when I was testing the solution. My apologies for that. The issue stems from the default value of the flag that we created for this case.

public bool ShouldUpdateItem { get; set; } = true;

ShouldUpdateItem default value should be true, to accept the first call of the Update handler.

I hope this will fullfil your scenario. Let me know if I could help you further.

Regards,
Joana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Miriam
Top achievements
Rank 1
Veteran
answered on 15 Nov 2020, 04:32 PM
Hi, thank you very much!
Tags
Grid
Asked by
Miriam
Top achievements
Rank 1
Veteran
Answers by
Joana
Telerik team
Miriam
Top achievements
Rank 1
Veteran
Share this question
or