Binding to JSON

5 posts, 1 answers
  1. Franck
    Franck avatar
    3 posts
    Member since:
    Dec 2011

    Posted 27 Feb 2012 Link to this post

    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
  2. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 29 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Franck
    Franck avatar
    3 posts
    Member since:
    Dec 2011

    Posted 01 Mar 2012 Link to this post

    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
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 05 Mar 2012 Link to this post

    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 >>
  6. Franck
    Franck avatar
    3 posts
    Member since:
    Dec 2011

    Posted 05 Mar 2012 Link to this post

    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

Back to Top
DevCraft banner