Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Dynamically bind to multi-tier hierarchy
posted

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.

Parents
No Data
Reply
  • 40030
    Offline posted

    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

Children