I am trying to use xamWebTree with hierarchical data tree as shown in following article.
http://devjitsu.com/blog/2010/04/23/hierarchicaldatatrees-with-a-custom-datasource/
I am not sure why it does not work it when I use xamWebTree as oppose to standard treeview in silverlight 4. It does show first level node but does not bind child elements. I would be great if there are any solution to it. Thanks
Hi,
Are you using our latest ServiceRelease (available in our product download section at our site)?
It is required to allow Silverlight4 support.
HTH,
Thanks Stoimen for quick reply.
I have applied Service Release but same result. I think I have to mention one thing here, I am using WCF RIA services for data. My table is as follow:
ElementID ElementName ParentID
1 Element1 Null
2 Element2 Null
3 Element3 1
ParentID is related to ElementID and my SL 4 treeview comes fine with child but not xamWebTree. It would be nice if you could download the sample code above and try to replace with xamwebtree. Asking a lot, Thanks
You need to specify HierarchicalItemTemplate property for each nested level of items.
This could be done both in XAML and CS.
Please, check the attached solution for a sample which uses XAML to define the HierarchicalItemTemplate.
I download your "TreeExploratory" example and I upgraded it to version 10.1.20101.1005. This did not work, just shows the first level and does not expand the following sublevels.
Could you tell me why it didn't work.
Thanks
Jaimir
Hi Jamir,
The 10.1.2010.1005 is the 10.1 Volume Release version and it has been built with Silverlight3. build 10.1.2010.2022 - the 10.1 Service Release however has been released with Silverlight4 compatibility, so you either need to:
1. Switch your project to Silverligh3 version
2. Update to latest 10.1 Service Release
Hi
I have been trying to do the same, if possible can you please let me know how you intend to do the hierarchical binding when you have the id, parent id relationship.