Binding Questions for treeview

2 posts, 0 answers
  1. Sean
    Sean avatar
    3 posts
    Member since:
    Jun 2018

    Posted 01 Aug 2018 Link to this post

    I have read through the samples and the docs trying to get the flat self-referencing data binding to work with the tree view, but I am not making good progress.

    My application is using the MVVM design pattern. When I run my application, I do not get any data in the tree view, but my view model has fetched the data that I expect to see in the tree view. 

    When I debug the application, the HierarchyConverter class is called before the Loaded event handler has fired, passing it my uninitialized view model, which it can do nothing with. When that call completes, the Loaded event handler is called and the view model is initialized with the data for the tree view, but the converter is not called again.


    I need some help trying to understand how I should be using this control, I am not getting it despite having read through your SDK docs and samples.






  2. Martin Ivanov
    Martin Ivanov avatar
    2217 posts

    Posted 06 Aug 2018 Link to this post

    Hello Sean,

    Have you checked the Bind RadTreeView to Self-Referencing Data help article? You can also find a runnable SDK example showing this approach. If your data is fetched properly but you can't see the control check the Missing Controls in the UI article. If this doesn't help I would ask you to post some runnable code snippets showing your data structure and treeview set up.

    Martin Ivanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top