Print Page | Close Window

New user question

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=493
Printed Date: 12-Apr-2026 at 2:28pm


Topic: New user question
Posted By: thamaluk
Subject: New user question
Date Posted: 12-Oct-2007 at 10:22am
I am new to DevForce and CAB and have some questions about Cabana.
 
If I just look at the SalesOrder project I have the following questions
 
How does the search grid get populated ?
 
How/Where does the detail tabs get created ?
 
How/Where does the details grids get created and populated?
 
 



Replies:
Posted By: Linguinut
Date Posted: 12-Oct-2007 at 12:49pm
thamaluk!!  Welcome!!
 
It is great that others are getting involved with the DF/CAB project.
 
Take a look at the docs that come in the download...lots of great information in there.  It will get your feet wet.
 
Quick answers:
1)  The search grid is populated by a GridBuilder.  These are quite easy to construct.
 
2)  The controller creates the tab content.
 
3)  Detail grids are often simple views created to slip into the tab content from #2.
 
Hope this helps.
Bill


Posted By: Bill Jensen
Date Posted: 15-Oct-2007 at 9:57am
Thanks, Bill for contributing to this.  Here are a few additional comments:
 
1.  If you're interested in CAB and Cabana (Dan and Bill, this goes for you too!), we highly recommend that you acquire and read David Platt's book, available here:
 
http://www.amazon.com/Programming-Microsoft-Composite-Application-Practices/dp/0735624143/ref=sr_1_1/105-9833055-7187604?ie=UTF8&s=books&qid=1192466680&sr=1-1 - http://www.amazon.com/Programming-Microsoft-Composite-Application-Practices/dp/0735624143/ref=sr_1_1/105-9833055-7187604?ie=UTF8&s=books&qid=1192466680&sr=1-1
 
It's not as complete as we'd like but it's a good introduction and helps solidify many concepts.  It's only twenty bucks.
 
How does the search grid get populated ?
 
Bill is correct.  When the page controller creates the view, it gets the prototype GridBuilder from the GridBuilder service and passes it to the presenter in the view context.   
 
How/Where does the detail tabs get created ?
 
As Bill says, the page controller adds TabViewControllers for the views to appear on tabs to its TabViewControllers collection.  On Show(), the page controller's base class creates the tabs and uses the TabViewControllers to actually populate them with views.
 
How/Where does the details grids get created and populated?
 
By their TabViewControllers.  GridView's use custom tab view controllers (The DotNetGridView wizard generates one for you).  ControlView's can use GeneralTabViewController<viewtype>.
 
In keeping with CAB's runtime composition philosophy, composite views are always composed by code in controller classes.  Just remember that in Cabana, much of the processing has often been factored into base classes.
 
Bill J.



Print Page | Close Window