A problem I'm having when working with the Silverlight treeview is that I can't seem to bind it to a hierarchical datasource like I did using ASP.NET treeview. Using the latter technology, I could have an employee table with a field that tells who the employee's manager is, which would be the primary key for another employee record in the same table...basically a self-referencing table. Using the hierarchical datasource, I could then bind to the treeview and voila!...the parent-child relationships show up magically in the treeview and the nesting level would go as many layers deep as necessary. How can I replicate this behavior using the Silverlight treeview? Unless I'm missing something, the examples currently on the Infragistic's website do not appear to be applicable to this situation.
Hi,
Sorry for the delayed response, i've been out of the office.
The Tree doesn't currently support automatic databinding. It requires that you set up a hiearchy in xaml first, and then based off the bindings setup, will populate your nodes.
-SteveZ
Steve,
Sorry to butt in here but I am evaluating you silverlight controls compared to the others, and are you saying that you dont support Databinding to Hierarchical Collections ? can you explain what you mean by setting up the hiearchy in the xaml first ? do you mean templates ?
Marcus