What are the ways to achieve dynamic Kendo UI TreeList

2 posts, 0 answers
  1. Sibin
    Sibin avatar
    5 posts
    Member since:
    Nov 2016

    Posted 19 Dec 2016 Link to this post

    Let's say I have an array of Ids, and For each Id I would like to create a Tree List and bind the data with the given ID. I was wondering what are the ways to achieve it. Especially the columns are identical but how to provide the configuration settings for each dynamically created Tree Lists.

     

    {

    "id":"1",

    "data": "hello",

    "status": "inProgress"

    },

     

    {
    "id":"1",
    "data": "hello",
    "status": "inProgress"
    },

     

    {
    "id":"1",
    "data": "hello",
    "status": "inProgress"
    },

    {
    "id":"2",
    "data": "hello",
    "status": "inProgress"
    },

     

    {
    "id":"2",
    "data": "hello",
    "status": "inProgress"
    }

     

    Here all the Id 1 data will be part of one tree List and the ones with Id 2, will be part of another List.

     

    Thanks,

    Sibin S

  2. Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    1266 posts

    Posted 21 Dec 2016 Link to this post

    Hi Sibin,

    You can pass the filtered array of initial data to the respective TreeList's dataSource option, e.g.:

    http://dojo.telerik.com/UCuKo

    I hope this helps.

    Regards,
    Dimiter Topalov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top