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

AngularJS: kendoRendered event not fired

3 Answers 231 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Claudio
Top achievements
Rank 2
Bronze
Bronze
Iron
Claudio asked on 26 Mar 2015, 09:47 AM
Hi, i tried to catch the kendoRendered event in angular but it's never fired.
kendoWidgetCreated event work fine but not kendoRendered...
my kendo ui version  is v2014.2.1008 

Sample:

this.$scope.$on('kendoRendered', function (event: ng.IAngularEvent)
        {
            //NOT FIRED!!!
        });
        //Gestisce l'inizializzazione dei widget kendo
        this.$scope.$on('kendoWidgetCreated', function (event: ng.IAngularEvent, widget: kendo.ui.Widget)
        {
            //FIRED WELL!!
        });

any suggestions?
thanks

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 30 Mar 2015, 07:57 AM
Hello,

your code seems correct. Can you replicate your problem in a Dojo? Thank you in advance.

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Marvin
Top achievements
Rank 1
answered on 16 Dec 2015, 05:18 PM

Here is a Dojo that demonstrates a problem with the global events and possibly the directives too.

 http://dojo.telerik.com/iviLA

 

Clicking the button shows that the control is re-created each time.

0
Petyo
Telerik team
answered on 18 Dec 2015, 12:56 PM

Hello Marvin,

 

the ng-if part basically re-creates the contents each time it is re-evaluated - hence the problem. The easiest means to work around this would be with a wrapper.

 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Integration with other JS libraries
Asked by
Claudio
Top achievements
Rank 2
Bronze
Bronze
Iron
Answers by
Petyo
Telerik team
Marvin
Top achievements
Rank 1
Share this question
or