[object Object] and Undefined for columns

3 posts, 0 answers
  1. Spirent
    Spirent avatar
    13 posts
    Member since:
    Apr 2012

    Posted 31 Oct Link to this post

    Have a json array that has arrays of arrays.  However, the key value pair of an array is displaying "[object Object]"  when I add the template "=#manufacturer.name" I get undefined.  Can the grid handle this type of json object.  See attached file for object layout.  I am using Kendo UI Grid with AngularJS 1.15

  2. Spirent
    Spirent avatar
    13 posts
    Member since:
    Apr 2012

    Posted 31 Oct in reply to Spirent Link to this post

    The template is '#=manufacturer.name#"
  3. Kendo UI is VS 2017 Ready
  4. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 02 Nov Link to this post

    Hello Spirent,

    It appears that the "manufacturer" property is an array, thus you need to access its elements first. For example:
    #=manufacturer[0].name#
    You can also iterate over all items and display the "name" property of each one.

    Regards,
    Alexander Popov
    Telerik by Progress
     
    Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
     
Back to Top