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

Custom icon actions not working anymore

2 Answers 127 Views
Window
This is a migrated thread and some comments may be shown as answers.
Iuliana Maria
Top achievements
Rank 1
Iron
Iuliana Maria asked on 25 Jan 2018, 02:54 PM

Hello, 

Since the last update, the custom window action icons in our project are not working anymore. Also on the demos on the website they seem not to be working.

Please check the demos at the following links:

https://docs.telerik.com/kendo-ui/controls/layout/window/how-to/use-custom-action-icons

https://demos.telerik.com/kendo-ui/window/actions#

 

Thank you,

Iuliana

2 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 29 Jan 2018, 09:29 AM
Hello Iuliana,

Thank you very much for reporting the problem. 

In order for custom actions icons to work properly, the entire button should be selected. By now the selection was, the inner span element, which contains the icon. So, instead of selecting the span with the icon, the click event should be attached to its parent. 
win.wrapper.find(".k-i-foo").parent().click(function(e) {
 $("#time-foo").html(returnTimeString());
});
 
win.wrapper.find(".k-i-clock").parent().click(function(e) {
$("#time-clock").html(returnTimeString());
});

You can find the modified example on the following Dojo.

The example in our documentation and the demo regarding the custom action icons in Window will be modified as soon as possible.

As a sign for gratitude for reporting the problem, your Telerik points are now updated. 

Regards,
Neli
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Iuliana Maria
Top achievements
Rank 1
Iron
answered on 29 Jan 2018, 09:50 AM

Hi Neli,

Thank you!

Tags
Window
Asked by
Iuliana Maria
Top achievements
Rank 1
Iron
Answers by
Neli
Telerik team
Iuliana Maria
Top achievements
Rank 1
Iron
Share this question
or