kendo-labs / angular-kendo

A project to create a robust set of Angular.js bindings for Kendo UI widgets
474 stars 209 forks source link

An issue with k-ng-model for multiselect #379

Closed YonatanKra closed 10 years ago

YonatanKra commented 10 years ago

I now rewrite the question as I've been able to duplicate this on plnkr.

Here's an example: http://plnkr.co/edit/xiXSaIdDFI0Oq4dcdasM?p=preview In this example, I k-ng-model to a scope variable, it shows the selection as expected, but no event is fired upon this binding (you can see only dataBound is fired, but it is fired before the selection is "made").

I console.log from dataBound, change and select but the last 2 are not even fired, while the first one fires once, without the selection. Hence, the selected items are being "chosen" after the dataBound event and I have no idea when (I need this to do some tasks upon selection).

What would be the correct listener for this event?

mishoo commented 10 years ago

Your plunker seems totally unrelated to the question. It doesn't define any widgets. Wrong link?

YonatanKra commented 10 years ago

Sorry about that. Plnkr acts strange lately. Here is an example based on your example in the Kendo UI Dojo: http://runner.telerik.io/fullscreen/EyuN As you can see in the console, only the "dataBound" is fired, and it is fired without the bound selection. Is there a way to listen on this event angular-kendo-like?