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

Template Column function fires multiple times in Grid, we are using Kendo UI with angular

2 Answers 172 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 1
Ajay asked on 19 Sep 2015, 03:19 PM

Hi,

 I have configured a grid which is using a template column, and the value of that template column comes from a function. When I load the grid, the templated column displays correct value. But the issue is, that function is being called many time, my expectation was; It will be called as per the row count in grid, but it seems to be firing for each cell in the grid. Please refer to this link to see the issue :

http://dojo.telerik.com/EnUvO

Please let me know, in case I have configured something incorrectly. 

Regards,

Ajay Kaushik

2 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 23 Sep 2015, 08:34 AM

Hello Ajay,

 

This behavior is not guaranteed due to the Angular template. You can check the following example which illustrates what happens in the Grid - two templates executes the function 5 times.

 

 

http://dojo.telerik.com/@rusev/EQorE

 

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Ajay
Top achievements
Rank 1
answered on 23 Sep 2015, 09:47 PM

Got It, Thanks.

 

Regards,

Ajay Kaushik

Tags
Grid
Asked by
Ajay
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Ajay
Top achievements
Rank 1
Share this question
or