Solution for starting a mediator with the view being an itemrenderer from a list from a popUp

george.dascalu's Avatar

george.dascalu

30 Jan, 2011 08:01 PM

Hi,
I wanted to share and ask for opinions a solution that i created in the problem of registering a mediator of an item renderer from a popUp, in 2 easy stepts:

So:
STEP 1:
mapView with the mediator, but eliminate the autostart options, like so:
mediatorMap.mapView(ItemRendererView, ItemRendererMediator, null, false , false);

STEP 2:
In the mediator mapped with the List View i listen for the item renderers that are being created:
--- view.dataGroup.addEventListener(RendererExistenceEvent.RENDERER_ADD, onRendererAdd); the Handler:
--- mediatorMap.createMediator(e.renderer);

Thank you for reading, i hope it is useful :)

  1. Stray closed this discussion on 29 Apr, 2011 06:18 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac