Error with Tree population from WCF

4 posts, 0 answers
  1. Jonathan Miller
    Jonathan Miller avatar
    57 posts
    Member since:
    Jun 2008

    Posted 12 Sep 2008 Link to this post

    I am binding to the treeview from WCF, returning a List<>.

    The TreeView populates the tree, but not with the data - it list the service name for every node it creates.

    radTree.ItemsSource = e.Result;  
    radTree.DisplayMemberPath = "FolderName";  
    radTree.SelectedValuePath = "ID"

    For the number of nodes returned, this shows in the treeview: pcsSilverlight.ServiceReference.Folder

    Any ideas?  Thanks

  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 15 Sep 2008 Link to this post

    Hi Jonathan,

    We are still not implemented the DisplayMemberPath property - that is why you get this result. At the moment use DataTemplates. Here is an example:
    http://www.telerik.com/help/silverlight/radtreeview-binding-to-collection.html

    Let us know if you have more questions.

    Kind regards,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Jonathan Miller
    Jonathan Miller avatar
    57 posts
    Member since:
    Jun 2008

    Posted 01 Oct 2008 Link to this post

    Will the DisplayMemberPath be implemented is RC0?  Thanks
  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 01 Oct 2008 Link to this post

    Hello Jonathan Miller,

    Yes.

    All the best,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top