XamDataTreeNode has some overridable OnXYZ functions, implying it can be extended.
Instances seem to be created by the XamDataTreeNodesManager, but the NodeManager property of a XamDataTree is read-only.
How do I extend the XamDataTreeNode and have nodes in my tree be of a custom type (i.e.: MyXamDataTreeNode) ?
Hello Patrick,
I am just checking if you require any further assistance on the matter.
I think we got it working (and of course, have now decided to go a different route!)
The biggest issue we ran into was signing. The assemblies need to be signed for us to use them and all the circular externalsvisibleto made that rough (chicken and egg problem). Most of the time updating the source was dealing with that issue.
Change notifications coming from the tree were also a problem. The tree would notify of changes that weren't really changes, which usually is not a problem. But in our case, we have different owners of whether something is selected and this caused race conditions at times. This caused us to have to implement our selection logic both in the tree control and in our under-the-hood model.
The selection change approach was to make the existing XamDataTree extensible and extend a new HierarchicalSelectedNodesCollection and HierarchicalSelectionSettings that can optionally be used if you want this selection mechanism.
I figure this is a very domain-specific way for a tree to work, but we might be able to deliver our changes if you guys are interested in rolling them into the product.
Thank you for your email. I have been looking into the issue that you have described and I will need some more details on your implementation. Would you please let me provide me with the code for the custom selection that you are implementing and if possible a sample application that shows your implementation?
Looking forward to hearing from you.
Sincerely,
Krasimir, MCPD
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
I have run into another issue and am having trouble solving it. I've isolated the Infragistics code and think I can send you guys a sample of what it is doing wrong. Note that the release version of the XamDataTree does not have this problem, it is only our customizations.
If I bind to an observable collection and lazy load a node's children when the node is expanded the control crashes with an index out of bounds error.
Is this something that Infragistics can help with and, if so, where do I upload data?
Thank you for your reply. I am very glad that you have managed to solve previous issues that you have described and sharing them can help the other users of the XamDataTree.
Regarding the new issue that you are having, if you could provide me with a sample application that is showing the behavior, I would be glad to research it for your and see how we can resolve the issue.
Thank you in advance and looking forward to hearing from you.
I have a sample application, but you'd need all of our customization to the XamDataTree in order to run it. Is there a private place I can place this? It contains all of the Infragistics source for WPF, not sure if posting that to the forum would be acceptable.
Thank you for your email. I have created a private case for you, where you can attach your sample. The case number is CAS-148581-H8W5N0 and you can access it, by going to our website and then to your account and Support Activity.