Page 1 of 1

Modal Dialog disable JQ Widgets

PostPosted: 09 Sep 2014 19:33
by oflor
Hi Pals:

There anyone know why when I set a Frame/Dialog to Modal := True, the "input" components are ReadOnly/Disabled? I don't associate it with a DataSource I want to use it freely but doesn't accept user input.

Principally I need a lookup window.

Thanks to everybody and Best Regards
Oscar Flor
Sebaot

Re: Modal Dialog disable JQ Widgets

PostPosted: 09 Sep 2014 21:10
by Jorge Sousa
Hi Oscar

Without seeing your demo project, and because it's a common thing, try to put the controls in the dialog with ZIndex >= 1000

Re: Modal Dialog disable JQ Widgets

PostPosted: 09 Sep 2014 23:41
by oflor
Excelent! Thank You very much a sorry for be too newie :D

Maibe in the nex release can be done automatically by the Dialog to set its controls inside a ZIndex grather han his zindex.... ;)

Re: Modal Dialog disable JQ Widgets

PostPosted: 10 Sep 2014 00:15
by Jorge Sousa
Hi

About

Maibe in the nex release can be done automatically by the Dialog to set its controls inside a ZIndex grather han his zindex.... ;)


Thanks for the suggestion, in fact, this was always an issue for many users.

The problem is not very easy to handle, since we've to do in the browser side, using javascript/jquery, which is always more difficult, since we have to guraantee the functionality in many browsers, dialogs over dialogs, etc..

Please note that if JQDialogOptions.Stack = True, which is the default value, dialog finds the zindex automatically, in browser,

And the server doesn't know what this value will be.

If JQDialogOptions.Stack=False, the dialog uses the ZIndex assigned in Delphi, and it's more easy to handle, iterating the dialog controls and set the ZIndex for each.