Greetings!
Today I was working on learning dhtmlxForms. I had trouble getting the form to attach to my window, and when I replaced my 2.5 dhtmlxcontainer.js with version 2.6…I worked fine!
But then, I discovered that my window that has 2 menus and a grid attached broke!
The first menu attaches fine, but the second does not, with specific error, Firefox error console only reports that my grid never gets defined. Put version 2.5 of dhtmlxcontainer.js back, and the 2 menu window works fine.
Any suggestions?
Thanks.
Have fun,
Paxton
Hi,
had trouble getting the form to attach to my window, and when I replaced my 2.5 dhtmlxcontainer.js with version 2.6…I worked fine!
container 2.5 doesn’t support Forms (dhtmlxforms was added in 2.6)
But then, I discovered that my window that has 2 menus and a grid attached broke!
Only one menu can be attached to one container. You may attach 1C layout into the window. One menu could be attached to the window and the other one with grid - to layout.
[code]var menu1 = win.attachMenu();
…
var layout = win.attachLayout(“1C”);
layout.cells(“a”).hideHeader();
var menu2 = layout.cells(“a”).attachMenu();
…
var grid = layout.cells(“a”).attachGrid();[/code]
Greetings,
Thank you for the very fast reply.
Thank you for your suggestion, and I will look into it today.
It is disappointing, as I have successfully used the window-menu1-menu2-grid for a long time and my application is now dependent on it. Does this mean 2.5 was not intended to attach 2 menus and I unknowingly exploited it?
I switched to form from using an html page with a couple of input fields loaded into a window by URL because I was having difficulty with getting all the communications I needed between the parent and the URL window working correctly. Form solved that nicely, but…Oh well
Thanks again, your stuff is great!
Have fun,
Paxton
Greetings, Alexandra.
I just wanted to report back that I tried your suggestion, and it worked fine!
Even looks better since there is now a line between the two menus. I had used the two menus to group similar functions so that is even better delineated.
Thanks again, have fun!
Paxton
Hi, Paxton
Does this mean 2.5 was not intended to attach 2 menus and I unknowingly exploited it?
Yes, container was not designed for attaching 2 menus. Possibly you could add 2 menus in 2.5 version, but other functionality like detachMenu() worked only for one menu…