EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: yamilbracho on July 28, 2015, 08:44:37 AM



Title: Special lightbox
Post by: yamilbracho on July 28, 2015, 08:44:37 AM
Hi
I know we can use $.messager.progress to show a message while a lengthy ajax call is made but I would like to use the
little dialog EasyUI uses in grids as it shown in the attached picture.
Is there a easyu way to use thsi feature ?

TIA,
yamil



Title: Re: Special lightbox
Post by: stworthy on July 28, 2015, 07:28:19 PM
Please refer to http://www.jeasyui.com/forum/index.php?topic=3641.0


Title: Re: Special lightbox
Post by: yamilbracho on July 29, 2015, 01:28:41 PM
Thanks!!!


Title: Re: Special lightbox
Post by: yamilbracho on July 29, 2015, 02:10:56 PM
I  am trying to use this code but i am having problems:

1) Do I need to define a div for this, say
Code:
<div id='dlg' class="easyui-dialog" data-options='collapsed:true, closed:true'></div>
I have to add closed:true because when i run my form it was shown on the screen...

And to call I use
Code:
$('#dlg').dialog('showMask', 'Actualizando...');

But nothing is shown... I also add 'open' and it show a small dialog and above it the message :
Code:
            $('#dlg').dialog('open');
            $('#dlg').dialog('showMask', 'Actualizando...');

What i am doing wrong ?

TIA;
Yamil


Title: Re: Special lightbox
Post by: stworthy on July 29, 2015, 04:34:31 PM
The 'mask' layer stays on the window. It works only when the window is opened.


Title: Re: Special lightbox
Post by: yamilbracho on July 30, 2015, 07:02:58 AM
Thanks!!