View Full Version : Dialogmanager enhancement: On dialog close, focus underlying dialog
thesilentman
05-06-2007, 05:15 AM
As stated by animal here: http://extjs.com/forum/showthread.php?t=5444
"It would be a fairly easy enhancement to the Ext.DialogManager object to bring to front and focus the next non-hidden dialog down the z-order upon close of a dialog."
JeffHowden
05-06-2007, 08:00 PM
As stated by animal here: http://extjs.com/forum/showthread.php?t=5444
"It would be a fairly easy enhancement to the Ext.DialogManager object to bring to front and focus the next non-hidden dialog down the z-order upon close of a dialog."
Actually, it'd be even better to be able to pass a reference to the parent dialog in the config of the dialog being created. That way it wouldn't have to search for it (would be a serious performance issue if it did that).
thesilentman
05-07-2007, 12:52 AM
Thanks for your input Jeff,
Good thought, in case of a dialog button being the parent. Yes it sure is a nice thing to have instead of having to check it all with another function
Of course this does not cover the case of some other type of object (Menubutton, Button, Grid) being the parent. Or other dialog being displayed underneath itself which is not parental to this one. For this you'd still need the solution initially discussed.
Animal
05-07-2007, 08:31 AM
But parent->child doesn't necessarily imply z-ordering.
In the new Ext "desktop" environment that Jack has mentioned, a container might be the parent of several dialogs. When one of these dialogs is closed, it shouldn't be the parent container that takes focus, but the next highest sibling dialog.
thesilentman
05-07-2007, 08:48 AM
Exactly what I wrote ;). I hope the 2.0 Monster won't take too long.....
thesilentman
05-14-2007, 11:26 AM
Hello Jack,
can we expect any enhancement like this to be included, soon?
jack.slocum
05-15-2007, 10:28 AM
In Ext 2.0, the WindowManager activates/focuses last accessed window when one is closed.
thesilentman
05-17-2007, 08:59 AM
Until Ext 2.0 some desktop functionality I coded can be found here: http://extjs.com/forum/showthread.php?t=6355
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.