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

Gantt batch updates

3 Answers 18 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Iron
Veteran
Al asked on 24 Mar 2021, 07:32 AM

I have config like this:

 

<ganttdatasource ref="ganttdatasource1"
                        :transport-read="ganttRead"
                        :transport-update="ganttUpdate"
                        :transport-create="ganttCreate"
                        :transport-destroy="ganttDestroy"
                        :transport-parameter-map="parameterMap"                          
                        :transport-submit="ganttSubmit"
                        schema-model-id="id"
                        :schema-model-fields="fields">
</ganttdatasource>

 

From what I can tell from the docs if transport-submit is defined then the create/update/destroy functions should not be fired and all should be batched up into a single call to transport-submit, but this does not happen: transport-submit is never called and transport-update etc. are all called as normal.

Is this a bug or do I misunderstand the operation?

3 Answers, 1 is accepted

Sort by
0
Accepted
Petar
Telerik team
answered on 24 Mar 2021, 10:09 AM

Hi Al,

To batch multiple changes in one, you have to set the batch property of the dataSource to true. Here is a StackBlitz example demonstrating the usage of the mentioned property. If you move the "Software validation" task, you will see that only one request will be sent to the backend but this request contains the changes made in all "Software validation" subtasks.  

Can you check if after adding the discussed above property, the Gantt will start working as expected in your application?  

Regards,
Petar
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
Al
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 29 Mar 2021, 07:25 AM

Thanks Petar, setting the batch prop seems to do the trick (I am sure I had tried that before but obviously I was doing something wrong).

 

So the behaviour seems to be that all updates are sent together in one array when batch is true, either to the separate transport-reate/update/destroy handlers, or, if transport-submit is set, then all updates are sent to that handler

0
Petar
Telerik team
answered on 29 Mar 2021, 10:43 AM

Hi Al,

Thank you for the summary of Gantt's functionality. 
Let me know if you need further assistance with the current ticket. 

Regards,
Petar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
General Discussions
Asked by
Al
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Petar
Telerik team
Al
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or