Hi,
I have a dhtmlxwindow and inside a layout (‘2U’). The left side part holds the grid which doesn’t show the scroll bar? How can I fix this?
Code:
...
var layout = new dhtmlXLayoutObject("RoleRCsWndContainer", '2U');
//Table
var layoutLeft = layout.cells('a');
layoutLeft.hideHeader();
layoutLeft.setWidth('480');
//layoutLeft.setHeight('170');
layoutLeft.fixSize(1,1);
RoleRCsGrid = layoutLeft.attachGrid();
RoleRCsGrid.setHeader("A,B,C");
RoleRCsGrid.setColTypes("ro,ro,ro");
RoleRCsGrid.setColSorting("str,str,str");
RoleRCsGrid.setInitWidths("*,140,110");
RoleRCsGrid.setSkin("xp");
RoleRCsGrid.enableAlterCss("even", "uneven");
RoleRCsGrid.init();
var url = "./data_xml/role_rcs_xml.php?etc="+new Date().getTime()+"&role_id="+roleId;
RoleRCsGrid.loadXML(url);
...
<div id="RoleRCsMainWndContainer" style="width: 680px; height: 250px; line-height: 14px;">
<div id="RoleRCsWndContainer" style="width: 680px; height: 220px; border-bottom: 1px solid #ddd; overflow: auto;"></div>
</div>
Parent div’s style is set to ‘overflow: auto’ as you can see.