The update event is not triggered when the element in an array is modified

1 Answer 126 Views
Editor ListView Scheduler
Pablo
Top achievements
Rank 2
Pablo asked on 29 Aug 2022, 02:46 PM

I have a similar problem to this old thread: Dealing with data which includes a field having an array of objects in Kendo UI for jQuery | Telerik Forums.

I linked a field that is an array of a specific class to a Kendo ListView of a custom editor when you create or edit a scheduler item.

When I add or remove items, there are no problems. Apparently, the scheduler recognizes that there are more or fewer items in the list, but when I modify a list item (one of its properties), the scheduler does not trigger the update event.

Is there a way to trigger the update event when the ListView items are modified or force it to fire?

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 01 Sep 2022, 10:10 AM

Hi Pablo,

Could you please confirm whether you are using the Telerik UI for ASP.NET Core or Kendo UI for jQuery initialization of the Scheduler? For example, providing the configuration you have utilized thus far would be beneficial for the case, as it will give me a better overall understanding of the scenario you currently have implemented on your end.

Nevertheless, if you wish to trigger a widget event, you can utilize the corresponding trigger method. Here is an example:

<script>
 var scheduler = $("#scheduler").data("kendoScheduler");

 scheduler.trigger("save");
</script>

Looking forward to hearing back from you.

Kind Regards,
Alexander
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Pablo
Top achievements
Rank 2
commented on 08 Sep 2022, 06:06 PM

I'm using the Telerik UI for ASP.NET Core.

Alexander
Telerik team
commented on 13 Sep 2022, 06:13 AM

Hi Pablo,

Thank you for the additional clarification, it is greatly appreciated.

Did you manage to try the suggestion above? If the suggestion does not help, could you please consider sharing the currently utilized configuration on your end? For example, a code snippet showing the scheduler configuration, the custom editor, and any potential client-side logic would be beneficial for the case, as it will give me a better overall understanding of the scenario you currently have implemented.

Tags
Editor ListView Scheduler
Asked by
Pablo
Top achievements
Rank 2
Answers by
Alexander
Telerik team
Share this question
or