Hello,
I’m using DHTMLX 3.5 pro edition build 120822.
I’m trying to create an app where each tab connects to a different component that is populated from a database.
So tab(“a1”) connects to dhtmlxLayout object and each layout object (a different one for each tab) has a toolbar. Each layout also connects to another dhtmlx component (for instance, there’s a grid on one ‘page’, scheduler on another, etc.).
And I want the entire app to auto-resize in the browser window.
My question is what should I use for tabbar.setContent? Layout? Grid? Something else?
Hello
To use it righr just use one of the next metods:
attachAccordion
attachChart
attachDataView
attachEditor
attachForm
attachGrid
attachLayout
attachTabbar
attachTree
Using attachCOMPONENT you get auto scroll in a tab.
Method attachObject can means setting auto scroll to the object manually in its srtucture.
One more question: what should I set the Layout to? I think I want full screen initialization, but I don’t think I can have 5 different layouts set to document.window…even if they are in different tabs.
But if you are going load in layout only one components (i.e. grid) - you can do the next:
grid1=tabbar.cells(“tab1”).attachGrid(); - and it wiil be resize with your browser.
This is not really working for me. The tabbar is resizing horizontally now, but not vertically. I can’t seem to get the layout or grid to attach to the tabbar (do I need to initialize them somewhere first? Before the tabbar? Do they need html divs?). There’s also a light blue box underneath my tabbar (Firefox web dev tools is calling it: div.dhx_tabcontent_zone). I’m so confused.
Thanks, Darya! That was just the help I needed! You are awesome!
One more question: Does this allow for toolbars to be attached to each layout?
I have:
toolbar1=layout1.cells(“a”).attachToolbar();
toolbar2=layout2.cells(“a”).attachToolbar();
…etc.
It seemed to work for the first instance, but the second instance got an error:
dhtmlxtoolbar.js(line 7) “this.cont in null”. I must be doing something wrong here…
Does this allow for toolbars to be attached to each layout?
Yes! Indeed
You need to attach one toolbar to one cell ONCE - and you will not get any errors.
And you can have as many toolbars, as many cells you have.
But if you are going to use ONE common toolber in each cell - you need to use a little different approach. If you need i can offer you.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan