Recursive data binding in RadTreeListView

2 posts, 0 answers
  1. Niranjan
    Niranjan avatar
    1 posts
    Member since:
    Jun 2016

    Posted 08 Jun 2016 Link to this post

    Scalar ---value
    Enum  ---value
    String ---Value
    Boolean ---value
            -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?



  2. Maya
    Maya avatar
    4062 posts

    Posted 09 Jun 2016 Link to this post

    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.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top