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

Binding Questions for treeview

1 Answer 13 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 01 Aug 2018, 07:15 PM

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  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.

 

Thanks

-Sean

 

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 06 Aug 2018, 02:52 PM
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.

Regards,
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.
Tags
TreeView
Asked by
Sean
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or