Array template using ngRepeat

7 posts, 0 answers
  1. Jakub
    Jakub avatar
    24 posts
    Member since:
    Jun 2015

    Posted 08 Jun 2016 Link to this post

    Hello,

     

    How I can make this example to work?

    http://dojo.telerik.com/omuWa/2

  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2289 posts

    Posted 10 Jun 2016 Link to this post

    Hello Jakub,

    You should move the template outside the ng-app, otherwise the template will be already compiled when set to the Grid.

    Updated example - http://dojo.telerik.com/@rusev/UFARA

    Regards,
    Nikolay Rusev
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  3. Jakub
    Jakub avatar
    24 posts
    Member since:
    Jun 2015

    Posted 10 Jun 2016 in reply to Nikolay Rusev Link to this post

    Unfortunately I cant have template div outside application. Instead of having div element I can have script element. Is this a good solution?
  4. Jakub
    Jakub avatar
    24 posts
    Member since:
    Jun 2015

    Posted 10 Jun 2016 in reply to Nikolay Rusev Link to this post

    I tried mixing my and yours solution and I guess I found a bug:

    http://dojo.telerik.com/IFUDu/2

    I used angular 1.4.8 instead of 1.4.6. As you can see I get some trash data in empty arrays.
    Using Angular 1.4.6 everything works fine.

    Can you fix this bug?

  5. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2289 posts

    Posted 14 Jun 2016 Link to this post

    Hello Jakub,

     

    I assume that this fix here is causing the observed behavior as array items are wrapped in kendo.data.ObservableArray.

     

    As a workaround you can call toJSON method in order to receive plain JavaScript array.

     

    http://dojo.telerik.com/@rusev/UfExI

     

    Regards,
    Nikolay Rusev
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  6. Jakub
    Jakub avatar
    24 posts
    Member since:
    Jun 2015

    Posted 14 Jun 2016 in reply to Nikolay Rusev Link to this post

    Thanks for the workaround, but are you going to fix it in next releases?
  7. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2289 posts

    Posted 16 Jun 2016 Link to this post

    Hello Jakub,

    I don't see how we can fix this as it is in the AngularJS code base. Do you have any suggestions?

    Regards,
    Nikolay Rusev
    Telerik
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
Back to Top