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

Angular not allowing onChange event to fire on grid.

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 29 Sep 2014, 09:29 PM
Hello,

I have a simple angular controller that should handle the selected row of a kendo-angular grid.  However, angular is throwing an exception, "Referencing DOM nodes in Angular expressions is disallowed! Expression: uc.handleChange(selected, data, dataItem, columns)".

Is there a way around this or a better practice for retrieving the data model for a selected row?

Thanks

1 Answer, 1 is accepted

Sort by
0
Mihai
Telerik team
answered on 01 Oct 2014, 07:54 AM
Hello,

This is a breaking change in Angular 1.2.24 -- see this thread: https://github.com/angular/angular.js/issues/9220#issuecomment-57156500

The workaround is to pass selected in an object, for instance:

    uc.handleChange({ selected: selected }, data, dataItem, columns)

or use an older version of Angular.  Kendo ships with Angular 1.2.21.

Regards,
Mihai
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Mihai
Telerik team
Share this question
or