Print Page | Close Window

Combing controls on 1 view

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=435
Printed Date: 24-Jan-2026 at 6:20pm


Topic: Combing controls on 1 view
Posted By: orcities
Subject: Combing controls on 1 view
Date Posted: 18-Sep-2007 at 2:49pm
I would like to add a grid and other controls on to one view. Where the current Item selected in the Grid is the data that is present in the controls.
 
I have some functionality that only is used on the view, like enabling/disabling the grid. And other controls that need to be in the presenter, like creating/deleteing items.
 
I can't seem to figure out how to tie events to the Presenter.
Grid needs to have Context Menu.
______________________________
| control [_____]    [button][button]   |
|_____________________________|
|                                                          |
|Grid                                                    |
|_____________________________|



Replies:
Posted By: Bill Jensen
Date Posted: 18-Sep-2007 at 5:33pm

See my comments in response to "Adding Grids to View".  We recommend separating grid views and loose control views and combining them using a layout view.

The grid and control views can each have a presenter that is invoked in response to events in its view.  Establish the linkage between the presenters via a common object passed (by the layout view controller) in their view contexts.
 
Bill J.



Print Page | Close Window