×

Notice

The forum is in read only mode.
×
Getting new Releases

To get notified on new releases you may follow us on twitter @expandframework or subscribe in our main RSS feed.

Topic-icon How to use the treeview ?

  • fxandrei
  • fxandrei's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 year 6 months ago #11188 by fxandrei
How to use the treeview ? was created by fxandrei
So i have new xaf solution with web and desktop projects.
What do i need to do to use the treeview ?
Should i install the xpand treeview nuget package ?
In what project ?
Is there any additional classes that should be modified ?

I cannot seem to find a way to show the xpand tree editor in the "EditorType" in any listview.
More
1 year 6 months ago #11189 by Tolis
Replied by Tolis on topic How to use the treeview ?
as nugget packages only add the required assemby references you have to register the modules manually like

WinModule.Designer.cs
github.com/expand/eXpand/blob/17.1/Demos...dule.Designer.cs#L31

WebModule.Designer.cs
github.com/expand/eXpand/blob/17.1/Demos...dule.Designer.cs#L31

although there is a platform agnostic module you do not have to register it in the Module.Designer.cs or in any place you prefer as it will be loaded from the Win/Web related modules. Of course if you need to access its API from your agnostic module you do have to at least reference. These rules apply to all modules and are the same as with all XAF module expert the autoload part that Xpand has.

You may also use the installer from the downloads page that will add all assemblies to the GAC and in the VS toolbox so you can drag and drop them.

To get notified on new releases follow us on twitter @expandframework or subscribe RSS feed. I am also available @tolisss . Also see How to debug eXpand
  • fxandrei
  • fxandrei's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 year 6 months ago #11190 by fxandrei
Replied by fxandrei on topic How to use the treeview ?
I dont think i understand . Where exactly do i need to register the editors ? In the base module (platform agnostic) ? The web\win ?
In what file exactly and in what method ?
More
1 year 6 months ago #11191 by Tolis
Replied by Tolis on topic How to use the treeview ?
as I wrote in my previous post

for win

you have to use the next call in the WinModule.Designer.cs

this.RequiredModuleTypes.Add(typeof(Xpand.ExpressApp.TreeListEditors.Win.XpandTreeListEditorsWinModule));

for web

you have to use the next call in the WebModule.Designer.cs

this.RequiredModuleTypes.Add(typeof(Xpand.ExpressApp.TreeListEditors.Web.XpandTreeListEditorsAspNetModule));

you may also use the above calls in the constructor of your WinModule.cs, WebModule.cs its the same thing

To get notified on new releases follow us on twitter @expandframework or subscribe RSS feed. I am also available @tolisss . Also see How to debug eXpand
  • fxandrei
  • fxandrei's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 year 6 months ago #11192 by fxandrei
Replied by fxandrei on topic How to use the treeview ?
Wait. I got it :) . I did not look carefully . That was a demo solution.
It works.
So i just need to add
this.RequiredModuleTypes.Add(typeof(Xpand.ExpressApp.TreeListEditors.Web.XpandTreeListEditorsAspNetModule));

in the init method of the web\win module.
More
1 year 6 months ago #11193 by Tolis
Replied by Tolis on topic How to use the treeview ?
at github.com/expand/eXpand/tree/17.1/Demos/Modules you can find demo solutions for all modules. These demos are mainly used to test the modules using the included EasyTests (FunctionalTests directory).

To get notified on new releases follow us on twitter @expandframework or subscribe RSS feed. I am also available @tolisss . Also see How to debug eXpand
The following user(s) said Thank You: fxandrei
Moderators: expand
Time to create page: 0.278 seconds