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

Update multiple items without triggering databound

1 Answer 514 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Louise
Top achievements
Rank 1
Louise asked on 18 Apr 2017, 12:40 AM

Is there a way to stop a kendo element from rerendering and triggering the databound event while i'm updating the data?
I'm looping through the data to update a field. but everytime a field is changed, the element rerenders and triggers the databound
 angular.forEach($scope.list.dataSource.data(), function (item) {});

Is it possible to only render and the databound be triggered only after the loop and not while looping?

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 19 Apr 2017, 11:08 AM
Hi Louise,

Here you will find a simple implementation of a ListView with a DataSource configured, based on the described scenario. you will notice, that I have attached a handler for the dataBound event of the widget, which logs on the console each time the event is fired.

By clicking on the Button, the user overrides all the names of the displayed products. You will notice, that this, however, does not trigger the dataBound event. 

May I ask you to modify the attached so it reproduces the problem and send it back to us. This way we will be able to troubleshoot the issue locally and to provide you with the most appropriate assistance for your scenario.

I am looking forward to hearing from you.

Regards,
Veselin Tsvetanov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Data Source
Asked by
Louise
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or