To use the layout I placed the following div container round this logic and added the layout initialisation.
<div id="userpagebody" style="position:absolute; width:100%; height:100%;">
...... as above
</div>
var dhxLayout = new dhtmlXLayoutObject("userpagebody", "3W");
dhxLayout.cells("b").attachObject("scheduler_here");
The basics seem to work.
So my questions are:
When the page gets loaded the original scheduler layout is seen briefly – should I have the above div containers structures in another way to avoid this ?
I am getting a page horizontal scroll bar – even though the layout seems to fit the page completely.
I would really like the cell ‘b’ – the one with the scheduler in - to be a larger width than I am getting but – setWidth – does not seem to work. I would also like it so this cell cannot be collapsed.
You may use attachScheduler method to put the scheduler into layout cell. setWidth works in this case. Please check the sample:
dhtmlxLayout/samples/04_components/11_scheduler.html
I would also like it so this cell cannot be collapsed.
dhxLayout.attachEvent(“onCollapse”,function(id){
if(id == “a”)
dhxLayout.cells(“a”).expand()
})
Or you may hide header:
dhxLayout.cells(“a”).hideHeader()
I have also noticed that my JSP text below the ‘userpagebody’ container is not displayed.
I did look in the download for a scheduler example but in the download I did over the weekend of the layout in 04_components I have no 11 - I have 10_status and 12_gmaps but no 11.
Is there a way to remove the ‘<<’ from the header?
I am doing the following.
var dhxLayout = new dhtmlXLayoutObject("userpagebody", "3W");
div id="userpagebody" style="position:absolute; width:100%; height:100%;">
</div>
However my Tiles footer and text in a
container below the ‘userpagebody’ is not displayed eg.
var dhxLayout = new dhtmlXLayoutObject("userpagebody", "3W");
div id="userpagebody" style="position:absolute; width:100%; height:100%;">
</div>
<div>
Text not displayed
</div>
I am getting a windows page horizontal scroll bar – even though the layout seems to fit the page completely.
var dhxLayout = new dhtmlXLayoutObject(document.body, "3W");
dhxLayout.attachHeader("header,userpageheader");
dhxLayout.attachFooter("testing,footer");
and
var dhxLayout = new dhtmlXLayoutObject("userpagebody1", "3W");
dhxLayout.attachHeader("userpageheader");
dhxLayout.attachFooter("testing");
None of which seem to work - any help appreciated.
Note 1: ‘header’ and ‘footer’ above produced by ‘tiles’.
Note 2: I have removed all the ‘table’ stuff above - but still no success - I think the issue is that I have two headers (one from tiles and one from my page) and two footer (one from my page and one from tiles) and I am not sure how to set up dhtlmxlayout for this case.
The ‘footer’ is not below cells ‘b,c,d’ – it is part of cell ‘b’.
On the first loading of the page I am still seeing the ‘header’ , ’userpageheader’ and ‘footer’ which are then overwritten by the layout – how do I stop this ?
The scheduler in cell ‘c’ – I cannot see the bottom of the calendar ie. 23:00 in week view – and if I open an event in IE for 22:00 you cannot see the save/close part so you cannot use this event.
In FF cell ‘a’ is partially overwritten by cells ‘b,c,d’.
My application is available online now would it be ok if once I have uploaded the problem settup I send a link and logon details to your support email address as I have done before ?
I have had a go at providing the problem as requested.
Note: I have had some difficulty actually getting the scheduler into the example ie. no cells for events on the display – but I do not think this affects the issues raised before.
Which are:
I do not see cell ‘e’ at all.
The ‘footer’ is not below cells ‘b,c,d’ – it is part of cell ‘b’.
On the first loading of the page I am still seeing the ‘header’ , ’userpageheader’ and ‘footer’ which are then overwritten by the layout – how do I stop this ?
The scheduler in cell ‘c’ – I cannot see the bottom of the calendar ie. 23:00 in week view – and if I open an event in IE for 22:00 you cannot see the save/close part so you cannot use this event.
Cell ‘a’ is partially overwritten by cells ‘b,c,d’.
In also have some questions on the Accordion I have in cell ‘b’.
Can the user close all the Accordion sections so it looks the same as when first loaded ?
On my real site I can get dhx_black to work for the Accordion but not blue or skyblue – on the example even black does not appear to work.
I have solved 1, 2 and 4 above by setting the cell Height (‘e’) to 150 rather than 80.
So I do not need help with these I only need help with 3,5,6,7 - thanks
Note: On 5 it appears that the dhtmlxlayout is placing the contents on cell ‘a’ to low in cell ‘a’ leaving a gap - therefore pushing the rest of cell ‘a’ down.
I have also noticed the header has a blank line at the top of it placed there by the dhtmlxlayout funtionality - can this be removed ?
I have been doing some more work and have solved 5 (to do with using
in the cell) and 8 (to do with not being in the correct place in the
).
So I could do with help on.
On the first loading of the page I am still seeing the ‘footer’ – then being overwritten by the dhtmlxlayout – how do I stop this – setting display:none as I have done in the ‘userpageheader’ does not work.
Can I set it up so the user can close all the Accordion sections so it looks the same as when first loaded ?
On my real site I can get dhx_black to work for the Accordion but not blue or skyblue – on the example even black does not appear to work.
My other questions are.
How can I set the background colour of layout cell(’a’) only ?
I can have many items in an Accordion that is inside a layout cell – I would like it so that when the space is full you get a scroll bar rather than as now you just do not see the items – is this possible ?
On my real site I can get dhx_black to work for the Accordion but not blue or skyblue – on the example even black does not appear to work.
There is not imgs folder in your sample. Skins apply background images. Therefore, the imgs folder must be included.
How can I set the background colour of layout cell(’a’) only ?
You need to set background color for the html object that you place in layout cell.
I can have many items in an Accordion that is inside a layout cell – I would like it so that when the space is full you get a scroll bar rather than as now you just do not see the items – is this possible ?
It is impossible if you use attachAccordion method. Try to initialize accordion in a certain html container and then place this container in layout cell by attachObject method.
When I set “header” and/or “footer” to style=“display:none” the “header” and/or “footer” disappear unlike other
containers which once placed inside dhtmlxlayout override “display:none” against the
.
I have tried the imgs solution and still have problems with blue / skyblue.
See attachment two posts above - with the accordion set to dhtmlxaccordion_dhx_blue.css this does not work however ‘black’ does.
For the problem of filling up the dhtmlxlayout cell with accordion items I tried “to initialize accordion in a certain html container and then place this container in layout cell by attachObject method” as suggested but it seemed to make no difference. Even setting “overflow: auto” in the
container did not work.
The accordion items end up being impossible to use as when open they have very small content.