When I try to register the TreeNodesCollection of an UltraTree as a CAB-UIExtensionSite like this
RootWorkItem.UIExtensionSites.RegisterSite(UIExtensionSiteNames.WindowTemplatesTreeNodes, this.Shell.WindowTemplateNodes);
I get the following error message:
"No UIElementAdapterFactory register for type Infragistics.Win.UltraWinTree.TreeNodesCollection."
I checked with your documentation and it says
UltraTreeNodeThe following objects can be registered as extension sites: Nodes collection WinTree™ control individual UltraTreeNode element
UltraTreeNodeThe following objects can be registered as extension sites:
Do I have to register a special AdapterFactory as stated in the error message or what else might I do wrong?
Thanks in advance and best regards, Gerald
What is the exact issue you are having? Are you getting an error message? If so, what version of NetAdvantage are you using?
I know this is an old thread, but i have somehow the same issue here: how can i wireup a cab command with UltraTreeNode?
Thanks
As a follow-up, if you are using NetAdvantage 8.1, you do not need to write the extra line of code Sung mentioned; you will be able to register the TreeNodesCollection as a UIExtensionSite without having to register the associated UIAdapterFactory first.
Below is the code for registering the AdapterFactory for the tree. I believe this is no longer necessary in the newer versions but I haven't verified if that is the case.
IUIElementAdapterFactoryCatalog catalog = this.RootWorkItem.Services.Get<IUIElementAdapterFactoryCatalog>();catalog.RegisterFactory(new TreeUIAdapterFactory()); RootWorkItem.UIExtensionSites.RegisterSite("tree", this.Shell.tree);
Kim Ho said:Did you ever get this resolved?
No, because I didn't get any help from your side so far. Not via forum and not via support.
Kim Ho said:When creating your CAB application, did you ensure that your SmartClientApplication class inherited from IGFormShellApplication rather than the standard FormShellApplication?
Of course I did that.
Nice that you reply but be informed that I am past the complete beginners level.
Regards, Gerald