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

Custom Command and Angular

2 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 22 Apr 2015, 12:04 PM

Hi there,

I have a problem with custom commands in combination with angular. You can see it here: http://dojo.telerik.com/EBirE

 

When I click on the custom command I get redirected to another site even if I use preventDefault in the event handler. Instead I just want to open a kendo-window.

I think the problem is, that the a tag for the button uses href="#" which is picked up by angular.

 

How can I solve that?

 

thanks a lot,

Chris

2 Answers, 1 is accepted

Sort by
0
Christian
Top achievements
Rank 1
answered on 22 Apr 2015, 12:26 PM

I just found out by myself that the order of the functions is important. the eventhandler has to be placed before the options Object.

 

0
Accepted
Rosen
Telerik team
answered on 24 Apr 2015, 07:11 AM
Hello Christian,

Indeed, the variable assign to the click handler should be initialized, prior to using it. 

Regards,
Rosen
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
Christian
Top achievements
Rank 1
Answers by
Christian
Top achievements
Rank 1
Rosen
Telerik team
Share this question
or