Thank you, that is helping.
2 questions please,
When I am binding to my datasource from WCF, the items in my TreeView list the source, but not the actual values. For example, I have set the
radTree.DisplayMemberPath = "FolderName";
but the TreeView shows every node exactly as "pcsSilverlight.pcsServiceReference.Folders"
which is from
[ServiceContract] |
public interface IpcsService |
{ |
[OperationContract] |
List<Folders> GetFolders(); |
} |
|
[DataContract] |
public class Folders |
{ |
[DataMember] |
public string FolderName; |
|
[DataMember] |
public int ID; |
|
[DataMember] |
public int ParentFolderID; |
} |
So, question 1 is, what should I set the DisplayMemberPath to?
(simple, I'm sure) Question 2, if I need to populate the nodes in code behind, how do I create a node with different display text and values
i.e.
radTree.Items.Add(lstFolders[i].FolderName); but assign a different selected value
Thanks, great product!