Pavan
Pavan

Reputation: 93

Adding Modal true to dialog disables the entire popup

I am using Jquery dialog , as shown

$("#createDialog").dialog("option", "title", 'Create User232' );
$("#createDialog").dialog("option", "modal", true );  
$("#createDialog").dialog("open");

After using this line $("#createDialog").dialog( "option", "modal", true ); all the HTML Components opened in that pop up (TextBox , combo box) are in disabled state

Upvotes: 0

Views: 707

Answers (1)

KSDaemon
KSDaemon

Reputation: 366

Its probably better to make so:

$( "#createDialog" ).dialog({ title: "Create User232", 
                              modal: true});

This will automatically initialize and opens dialog;
If you need to open it later, make so:

$( "#createDialog" ).dialog({ title: "Create User232", 
                              modal: true, 
                              autoOpen: false});

and later just call "open" method.

Upvotes: 1

Related Questions