Page 1 of 1

UseMaxZ

PostPosted: 18 Feb 2016 06:02
by zsleo
CGD v 2.9.0.212

I have a number of dialogs in my app. All are modal = true and UseMaxZ = true

If I open only open and close one dialog everything works as perfectly: edits work, drop downs work, date drop downs work.

Open and close other dialogs in any order and eventually (after 4 to 5 open and close of different dialogs) edits and date drop downs stop working work but drop downs still work.

In all dialogs I changed the modal = false and under the same operation the date drop downs display under the dialog.

In all dialogs I changed the modal = true and the UseMaxZ to false and under the same operation the edits, drop downs and dates work correctly.

Re: UseMaxZ

PostPosted: 18 Feb 2016 10:24
by Alexander Bulei
Hi zsleo,

In all dialogs I changed the modal = false and under the same operation the date drop downs display under the dialog.

In all dialogs I changed the modal = true and the UseMaxZ to false and under the same operation the edits, drop downs and dates work correctly.


As I said, in previous replay, we implemented the UseMaxZ to prevent the auto-increment of zIndex of dialogs.
It's a jQuery UI framework behavior.

Best Regards.

Re: UseMaxZ

PostPosted: 18 Feb 2016 21:16
by zsleo
As I said, in previous replay, we implemented the UseMaxZ to prevent the auto-increment of zIndex of dialogs.
It's a jQuery UI framework behavior.

On first read of your original post I did not understand the implementation. As a result may I suggest the Use Max default be set to False because this is a "breaking" change

Re: UseMaxZ

PostPosted: 19 Feb 2016 10:11
by Alexander Bulei
Hi zsleo,

As I said, the default behavior of jQuery UI framework is auto-increment zIndex every time when open modal dialog.
So, why the UseMaxZ should be False?

Best Regards.

Re: UseMaxZ

PostPosted: 19 Feb 2016 21:33
by zsleo
Sorry to ask a question instead of answering your question. Why then does the behaviour of components on the components on the dialog change when Use Max is true?

My suggestion is not resulting from standards of implementation of dialogs - it is about its implementation in CGD.

To carry your arguement through to its logical conclusion when UseMaxZ is true as the default then CGD environment must also control all components in the dialog so that the "unwanted" side effects I described are accounted for.

This is just my opinion ;)