Hello
It’s impossible to remove/hide cells’ separators. Layout’s separators are hardcoded. They are inseparable visual and functional elements of layout’s structure.
I too have looked for a way to make to pad the layout and turn the separator white. I had hoped that the new Portal would make this an option and sadly it does not.
This evening while working on new screen, I went through the usual compensations for how to do this with layout:
Try to create windows and position each one so it looks nice – this does not work
Create a 1C layout and attach an html string which has divs nicely positioned and then put a layout in each div. – This works…it’s a pain and then when window is re-sized…good luck
Try using layout.setOffsets() to pad it a bit – this is tricky as it requires nested layout and also the separator still shows
After messing around a bit, I found something which is getting much close to the goal.
This turns the separators white. Just make sure the cells are fixed and cannot be resized.
If this is coupled with nested layouts and layout.setOffsets() then you can change the padding around each cell. And this is probably exactly what your looking to do.
After going through all these hoops, it would be great if dhtmlx could create 3 new layout methods:
layout.hideSeparator() - which turns the separator white and removes the cell resize handle
layout.showSeparator() - turns it back on
layout.cell(‘a’).pad( {top:10, right:10, bottom:10, left:10} - which pads cell(‘a’)
l = masterView.cells('a').attachLayout('2U');
l.setSeparatorSize(0,15);
I am using this with views (thanks to the view improvement in v4.1) and this is exactly the look and feel I’ve been wanting to achieve. Way back when I posted a message in New Requests asking for a Portlet feel—this is it.
Also in v4.2 it looks like the layout separators are nicer looking as the gray is a bit softer – easy on the eyes.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan