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

Unit testing grid angular js

2 Answers 148 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aakanksha
Top achievements
Rank 1
Aakanksha asked on 26 Nov 2014, 12:57 AM
Has anyone had trouble with unit testing grid kendo directive.

I have a very simple test with just columns configuration options, upon compilation of element I get the following back:

<div kendo-grid="" options="kendoGridOptions" style="visibility: hidden;"></div>

Thanks,
Aakanksha.

2 Answers, 1 is accepted

Sort by
0
Accepted
Petyo
Telerik team
answered on 27 Nov 2014, 03:32 PM
Hello Aakanksha,

Most of the Kendo UI Widgets are initialized in a timeout, in order for the ng-model/k-ng-model to work as expected. This is not a perfect solution, but we are gradually removing that implementation where possible. Meanwhile, you can use the kendoRendered event for testing purposes. In fact, you can check some of the tests in the Kendo UI Core repository for that approach. 

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Aakanksha
Top achievements
Rank 1
answered on 09 Dec 2014, 12:21 AM
Thanks Petyo, that worked for me.
Tags
General Discussions
Asked by
Aakanksha
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Aakanksha
Top achievements
Rank 1
Share this question
or