Recursive data binding in RadTreeListView

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

    Posted 08 Jun Link to this post

    (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

  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 09 Jun 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.


    Regards,
    Maya
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top