Scheduler and Modal Window

Hello!

Please advice me.
I need show the modal window (dhtmlXWindows with some form) above lightbox after click button.
This button is located on section of lightbox.
I tried this by follow code:

scheduler.form_blocks.select.button_click=function(index, src, sec, data){
  windows = new dhtmlXWindows();
  w1 = windows.createWindow('window_1', 0, 0, 280, 350);
// var str = [ .. some form ];
  var f1 = w1.attachForm(str);
  w1.centerOnScreen();
  w1.show;
  w1.bringToTop();
  w1.setModal(true);
}

My window w1 lies under lightbox.
How can I set zIndex of w1 to set 10000?
May be there is another solution to show (modal form, window or another lightbox) above lightbox?

Try to use

 windows = new dhtmlXWindows();
 windows.zIndexStep = 10000;

Hello, Stanislav!

That works!!!
Thank you for advice and fast response!

Hello, Stanislav!

Short question:
How to set z-index for form’s calendar?
After

windows.zIndexStep = 10000;

My calendar lies under form’s window.

Hello,

Please attach screenshot.

Best regards,
Ilya

Hello Ilya!

please see attached screenshot.

I has found one solution, but not so elegance:
just to add to page

.dhtmlxcalendar_container{ z-index:20100; }


Do you have form there?
If so

form.getCalendar(id).base.style.zIndex = 10002;

Best regards,
Ilya

Hello, Ilya!

Very simple!
Thank you very much!