RadListView [object Object]

4 posts, 1 answers
  1. angus
    angus avatar
    2 posts
    Member since:
    Sep 2012

    Posted 13 Sep Link to this post

    Hi,

    When copy/pasting the nativescript-ui-samples-angular/sdkAngular/app/listview/getting-started component into a brand new project {N} 3.2 using the tab template, I always get [object Object] displayed (screenshot : https://www.dropbox.com/s/gylu9zflttw51cd/Capture%20d%27%C3%A9cran%202017-09-13%2012.31.49.png?dl=0 )

    If I fallback to ListView, it works like a charm...

    When I run the nativescript-ui-samples-angular in my iOS emulator, it works too.

    the only difference i was able to catch is the fact that nativescript-ui-samples-angular import the RadListView directive w/ the pro edition :

    import { NativeScriptUIListViewModule } from "nativescript-telerik-ui-pro/listview/angular";

    Whereas I installed the free edition and thus import  like that :

    import { NativeScriptUIListViewModule } from "nativescript-telerik-ui/listview/angular";

    Any idea?

    Thanks in advance

  2. Answer
    Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    294 posts

    Posted 13 Sep Link to this post

    Hello Angus,

    The tab template is using lazily loaded modules. Make sure that you have imported the NativeScriptUIListViewModule in the respective module. For example, if you using the RadListView in the tabs component then you should import the module here.

    Another thing, you should check out in your code base is the Angular binding syntax in your HTML file.

    If this does not resolve your issue, please send us your sample project so we could investigate further.
    You can delete node_modules and platforms folders and send us the archive here or via GitHub link.

    Regards,
    Nikolay Iliev
    Progress Telerik
    Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
  3. angus
    angus avatar
    2 posts
    Member since:
    Sep 2012

    Posted 13 Sep in reply to Nikolay Iliev Link to this post

    Hello Nikolay,

    Thank you so much. It was indeed the import, placed in app.module.ts, instead of tabs.module.ts that was the root cause.

    I find odd that an import in app.module.ts (general import so to speak) is not available underneath (pages of tabs module), but I guess it's another angular thing ;-)

    Thanks again. i'll now be able to dig into the UI 3.1 RadListView new features ;-)

     

  4. Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    294 posts

    Posted 13 Sep Link to this post

    Hi Angus,

    I am glad to hear that the provided solution has resolved your issue and you can continue exploring the NativeScript UI controls! Let us know if you need any further assistance!

    Regards,
    Nikolay Iliev
    Progress Telerik
    Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Back to Top