Dynamic Columns In TreeListView

4 posts, 0 answers
  1. Tarik
    Tarik avatar
    12 posts
    Member since:
    May 2015

    Posted 07 Sep 2015 Link to this post

    Hi,

    I want to generate TreeListView Columns dynamically and populate them with data.

     Regards

  2. Stefan X1
    Admin
    Stefan X1 avatar
    521 posts

    Posted 07 Sep 2015 Link to this post

    Hi Tarik,

    Can you please take a look at the Various Data Sources online RadGridView demo? As RadTreeListView inherits RadGridView, the approach would be the same for both controls.

    You can also check the Defining Columns topic for further reference.

    Best Regards,
    Stefan
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Tarik
    Tarik avatar
    12 posts
    Member since:
    May 2015

    Posted 09 Sep 2015 in reply to Stefan X1 Link to this post

    Hi Stefan, Thanks for your quick reply, but unfortunately this not apply for our case, this is what we really need:

    A tree list that contains hierarchical data, but the datacolumns are dynamic as show the image bellow.

    Regards.

     

  5. Stefan X1
    Admin
    Stefan X1 avatar
    521 posts

    Posted 11 Sep 2015 Link to this post

    Hello Tarik,

    A possible approach for this scenario would be to implement an attached behavior for setting the columns dynamically. You can find a demonstration of such behavior in the ComboBox Column online demo.

    Hope this helps.

    Best Regards,
    Stefan X1
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top