Print Page | Close Window

FoundationModuleController.cs file

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=570
Printed Date: 05-May-2025 at 4:40am


Topic: FoundationModuleController.cs file
Posted By: gussabina
Subject: FoundationModuleController.cs file
Date Posted: 30-Nov-2007 at 4:27pm
Hi All:
When I try to create a new GridBuilder in the Foundation project, using the GridBuilder template, I get an error that says that it can not add the registration because the FoundationModuleController.cs file does not exist. (I used the  "Register as the default grid builder for the bound entity type" in the Registration Options).
However, this project was created by the Cabana Wizard. So, it is supposed to be there?
 
Thanks;
Gus
 
 



Replies:
Posted By: Bill Jensen
Date Posted: 03-Dec-2007 at 2:22pm
The application wizard does not create a module controller for the Foundation module so the GridBuilder wizard can't add the registration.
 
Add the registration yourself to the RegisterInitialServiceItems() method of the GridBuilderService (in Foundation\Services):

AddNew<MyGridBuilderType, MyBoundType>();

Hope this helps.
 
Bill Jensen


Posted By: gussabina
Date Posted: 03-Dec-2007 at 2:35pm
So easy...Why it seems so difficult before you posted the solutions here, and so easy after that?
 
many thanks for your support Bill !
 
Gus



Print Page | Close Window