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

AngularJS grid reference in databound event

2 Answers 321 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 19 Jan 2015, 04:24 PM
Why is the controller's reference to the grid not yet set in the databound event? Is this a design choice or a bug?
You can get a complete reference by accessing the sender in the databound event, so why would the scope not be updated yet?

Here's a plunker pointing out what I mean: http://plnkr.co/edit/ErDILanappRCgMxxo3Jh

I'm relatively new to AngularJS, so if this is a matter of design and guidelines please enlighten me with the details.


Thanks

2 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 21 Jan 2015, 09:25 AM
Hi Richard,

After some testing I found out that there is a reference to the Kendo UI Grid in the dataBound event handler. Here is an example:

http://dojo.telerik.com/@Kiril/OxABA

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
صابر
Top achievements
Rank 1
answered on 28 May 2017, 06:44 AM
thanks . i'm also solve this issue in angular with dataBound :
my issue about kendo auto fit columns in databound thats solved by your link
Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
صابر
Top achievements
Rank 1
Share this question
or