Toolbar ButtonSelect Option Left behind dhtmlxWindow

Hello,

I’m using dhtmlxToolbar with buttonselect. I need to build application with multiple windows, and I have few problems using it :

  1. I wonder how to make the options were not left behind when i move the window


  2. when i use 3 or more windows using toolbar with buttonselect, i cannot select the option (like it was disabled).


Later i find that the problem is the option was located behind the window


var dhxWins = new dhtmlXWindows();
var mywin=[];
var mylayout=[];
var mytoolbar=[];
var Opts;

dhxWins.setImagePath("../../codebase/imgs/");
Opts = Array(Array('one', 'obj', 'One', ''), Array('two', 'obj', 'Two', ''), Array('three', 'obj', 'Three', ''), Array('four', 'obj', 'Four', ''));


for (var i=1;i<=3;i++)
{
 mywin[i] = dhxWins.createWindow("win" +i, 20 + (i-1)*300, 30, 300, 300);
 mywin[i].setText("Win " +i) ;
 mylayout[i] =mywin[i].attachLayout("2E");
 mylayout[i].cells("a").setText("");
 mylayout[i].cells("b").setText("");

 mytoolbar[i] = mylayout[i].cells("a").attachToolbar();
 mytoolbar[i].addButtonSelect("brcbo", 1, "One",Opts, "", "");
}

Any one know how to solve this? Any help would be appreciated,

Thanks a lot

Regards,

Rika

Hello
You just need to increase z-index for the items list:

.dhx_toolbar_poly_18_dhx_skyblue { z-index: 2000 !important; }

Hi,

I also have same problem like yours…

I use select button component in the each toolbar of my dhtmlx window.
It’s fail when 3 or more windows openned.

Hope dhtmlx team can fix this bug later… :wink:

Hy Darya,

Thanks for your help…

It’s work :smiley:

Hello Darya,

It works like a charm.
Thanks a lot for your help :smiley:

Regards,
Rika

hirin, shaiya
You are welcome! :slight_smile: