New Posts New Posts RSS Feed: Combing controls on 1 view
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Combing controls on 1 view

 Post Reply Post Reply
Author
orcities View Drop Down
Senior Member
Senior Member
Avatar

Joined: 28-Aug-2007
Location: United States
Posts: 454
Post Options Post Options   Quote orcities Quote  Post ReplyReply Direct Link To This Post Topic: Combing controls on 1 view
    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                                                    |
|_____________________________|
Back to Top
Bill Jensen View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 31-Jul-2007
Location: United States
Posts: 229
Post Options Post Options   Quote Bill Jensen Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down