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

Recursive data binding in RadTreeListView

1 Answer 15 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Niranjan
Top achievements
Rank 1
Niranjan asked on 08 Jun 2016, 06:25 AM
(Level-1)
Scalar ---value
Enum  ---value
String ---Value
Boolean ---value
Array
    (Level-2)
    -Array 
        (Level-3)
        -Scalar ---value
        -Enum  ---value
        -String ---Value
        -Boolean ---value
    -Scalar ---value
    -Enum  ---value
    -String ---Value
    -Boolean ---value

I want to display the above tree in RadTreeListControl. The logic to extract "Value" property for each types(enums,scalar,array...) is different. How can I proceed?Can it be done by writing code behind logic? Also Does RadTreeListControl concept of ItemTemplateSelector?

Regards,

Niranjan

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 09 Jun 2016, 07:17 AM
Hello Niranjan,

RadTreeListView needs to have a data source that comprises of homogeneous items. Is the structure you provided a set of items or a set of properties of one particular item? 
As for ItemTemplateSelector, RadTreeListView provides RowStyleSelector that you can use for styling each row individually based on a specific logic. Please run the "RowStyleSelector" article for a reference.


Regards,
Maya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
TreeListView
Asked by
Niranjan
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or