Unit testing grid angular js

3 posts, 1 answers
  1. Aakanksha
    Aakanksha avatar
    4 posts
    Member since:
    Oct 2014

    Posted 25 Nov 2014 Link to this post

    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. Answer
    Petyo
    Admin
    Petyo avatar
    2444 posts

    Posted 27 Nov 2014 Link to this post

    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!
     
  3. Aakanksha
    Aakanksha avatar
    4 posts
    Member since:
    Oct 2014

    Posted 08 Dec 2014 in reply to Petyo Link to this post

    Thanks Petyo, that worked for me.
Back to Top