views:

235

answers:

0

I have Silverlight 3 project with a treeview which i populate from a table with hierarchical data using linqtosql via RIA domain services.

The problem I face is that the treeview displays both data from the top level and sub-levels side by side.

I have seen various examples of how to control this, but have not been able to do it myself. the technique is to attach a .Where(p=>p.ParentID==null); to the queryfunction and at same time preloading the childcollection. All my attempts fails to show the child collection

Any ideas ?