Completed
Last Updated: 29 Apr 2021 10:07 by ADMIN
Gregor
Created on: 15 Jan 2014 20:49
Category: Data Source
Type: Feature Request
2
Datasource should have a method to add array of data at once.
 It would go great batch syncing. And controls would redraw(refresh) just once when array of items is added. Not refreshing control and manipulating DOM(very slow) each time the item is added to datasource.
Example use case: scheduler month events copying...
3 comments
ADMIN
Viktor Tachev
Posted on: 29 Apr 2021 10:07

Hello,

 

The DataSource supports batch mode and can send multiple operations with a single request. Check out the resources below that describe the functionality in more detail:

https://docs.telerik.com/kendo-ui/framework/datasource/crud#submitting-all-items-with-a-single-request

https://docs.telerik.com/kendo-ui/api/javascript/data/datasource/configuration/batch

Regards,
Viktor Tachev
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/.

Vedad
Posted on: 23 Apr 2021 15:12
Basically, this is something I also requested/suggested for dataSource push methods.. pushUpdate can receive array of objects to update, but still processes them in simple loop, instead of all together.. It would be great if this could be incorporated in same solution.. would speed things up quite a lot.
ADMIN
Telerik Admin
Posted on: 17 Jan 2014 16:29
If I got your idea correctly, you should be able to use the datasource.data (http://docs.kendoui.com/api/framework/datasource#methods-data) attribute for this purpose. 

Thus you should be able to modify the items in it at once. Note that in this case you'll need to re-instantiate both the existing and new items as the previous data set will be cleared. 

Let me know if I am leaving something from your logic out.