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

Binding to JSON

4 Answers 148 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Franck
Top achievements
Rank 1
Franck asked on 27 Feb 2012, 08:10 PM
Hi all,

I need to build a treeview from mongoDB collection. To do so, I've setup a php webservice that's returning a json structure from the mongodb query.
Now I need to bind it to the RadTreeView... do you have any information or sample project that could help me ?

Thanks !
Franck

4 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 29 Feb 2012, 01:16 PM
Hi Franck,

Please take a look at the attached project as it demonstrates how to use RadTreeView and JSON. Give it a try and let me know if it works for you.

The sample is based on this online blog post: WPF Tutorial - Dynamic Data and the TreeView

Kind regards,
Kiril Stanoev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Franck
Top achievements
Rank 1
answered on 01 Mar 2012, 10:45 AM
Hi Kiril,

Thank you for your answer and the sample project. It helped a lot.

I do have a problem with it though, compilation fails with error : "tag 'RadTreeView' does not exist in XML namespace 'http://schemas.telerik.com/presentation" ...

Do you know why ?

Thanks a lot for your help
Cheers
Franck
0
Petar Mladenov
Telerik team
answered on 05 Mar 2012, 01:25 PM
Hello Franck ,

 Please make sure that the Telerik.Windows.Controls and Telerik.Windows.Controls.Navigation assemblies are correctly added to your solution, then re-build. This should fix the mentioned issue. 

Greetings,
Petar Mladenov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Franck
Top achievements
Rank 1
answered on 05 Mar 2012, 03:00 PM
Hi Petar,

That's what I did but then I realized the problem came from the WPF part (which i missed).

It was no big deal.

Thank you for your help :)

Cheers
Franck

Tags
TreeView
Asked by
Franck
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Franck
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or