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
958
Registering TreeNodesCollection as UIExtensionSite
posted

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

UltraTreeNode
The following objects can be registered as extension sites:

  • Nodes collection
  • WinTree™ control
  • individual UltraTreeNode element

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

Parents
  • 10880
    posted

    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);

Reply Children