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

Error with Tree population from WCF

3 Answers 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jonathan Miller
Top achievements
Rank 1
Jonathan Miller asked on 12 Sep 2008, 02:27 PM
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

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 15 Sep 2008, 10:55 AM
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.
0
Jonathan Miller
Top achievements
Rank 1
answered on 01 Oct 2008, 01:52 PM
Will the DisplayMemberPath be implemented is RC0?  Thanks
0
Valentin.Stoychev
Telerik team
answered on 01 Oct 2008, 02:25 PM
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.
Tags
TreeView
Asked by
Jonathan Miller
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Jonathan Miller
Top achievements
Rank 1
Share this question
or