This is a migrated thread and some comments may be shown as answers.

TreeListView binding to collection in column

1 Answer 45 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
rick
Top achievements
Rank 1
rick asked on 04 May 2011, 05:43 PM
Hi there,
    I am looking for a way to bind a collection of objects inside a TreeListView Grid column. I am able to bind to all of the objects in my hierarchy and have them displayed correctly in the TreeListView Grid. My Object model is something like this

NoteObject
        Text
        DateCreated
        DateModified
        Collection of Sub Notes ( of type Note )
        Collection of Flag Objects

Flag Object
       text
        type
    

The TreeListView Grid correctly displays the object hierarchy but I do not seem to be able to bind to the collection of Flag Objects. I would also like to use a converter on the Flag objects to change the background color of the cell based on the Flag Type. Could you send me an example of how to do this?

Thanks

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 05 May 2011, 11:09 AM
Hi rick,

Actually RadTreeListView is designed to display homogeneous data only, which makes it rather inappropriate for this very case. I would advise you to utilize a hierarchical RadGridView for this implementation. Please, do not hesitate to contact us immediately if there are any further inquiries.

Kind regards,
Ivan Ivanov
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeListView
Asked by
rick
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or