Declined
Last Updated: 16 Jan 2019 17:40 by ADMIN
binki
Created on: 09 Jan 2019 22:02
Category: Upload
Type: Bug Report
0
k-on-select doesn’t work for file-upload directive even though the docs seem to suggest it should.

If I read https://docs.telerik.com/kendo-ui/AngularJS/introduction I find “Setting Handlers through k-on Attribute” which suggests that I should be able to write `k-on-` prior to any of the events documented at https://docs.telerik.com/kendo-ui/api/javascript/ui/upload#events and automatically run under `$apply()` or `$applyAsync()`. However, when I try that, my event handler doesn’t even run at all.

I think this is an oversight.

I can reproduce this in https://dojo.telerik.com/ocESevUS which is generated from the link at https://demos.telerik.com/kendo-ui/upload/angular which uses AngularJS v1.7.2 and Kendo UI v2018.3.1017.


2 comments
ADMIN
Ivan Danchev
Posted on: 16 Jan 2019 17:40
Hi Nathan,

Thank you for clarifying the scenario.

Regards,
Ivan Danchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
binki
Posted on: 10 Jan 2019 19:08

Sorry, this was my mistake. `k-on-select` does work but it, following the AngularJS convention, executes the string value using `scope#$eval()`. That means that if I put a function there, the value will resolve to a function. So my solution is to properly make my expression a function call.

 

See https://stackoverflow.com/a/54135329/429091