Hello,
I have a 2E layout with a grid in cell A (top) and grid in cell B (bottom), and want to add toolbars to both cells.
If I add toolbar to cell A, the rest of the cell contents will shift down the page, so the last entry and the bottom of the scroll bar are hidden behind cell B. This is happening on Firefox, Opera and Chrome and I’m also using the latest suite. I’ve also tried 1C (single cell) and the same thing happens.
Although the example here does not suffer the same problem: dhtmlx.com/docs/products/dht … _cell.html
This is the code I’m using:
$(function(){
mainLayout = new dhtmlXLayoutObject(“mainLayout”, “2E”);
mainLayout.cells(“a”).setText(directory_title);
mainLayout.cells(“b”).setText(search_title);
// toolbar for path
path_toolbar=mainLayout.cells("a").attachToolbar();
path_toolbar.setIconSize(18); // just added but did not fix problem
path_toolbar.setIconsPath("imgs/");
path_toolbar.addButton('tb1_back', 0, 'Back', 'back.gif', 'backDis.gif');
path_toolbar.addInput('tb1_path', 1, current_path, 600);
path_toolbar.addButton('tb1_spinner', 2, '', 'ajax-loader.gif', '');
path_toolbar.disableItem('tb1_spinner');
path_toolbar.setSkin("dhx_skyblue");//set grid skin
// directory listings
directory_grid = mainLayout.cells("a").attachGrid();
directory_grid.enableEditEvents(false,false,false);
directory_grid.setImagePath("dhtmlx/dhtmlxGrid/codebase/imgs/");//path to images required by grid
directory_grid.setHeader(", File Name, Size, Type, Last Change, Last Access, file");
directory_grid.setInitWidths("30,*,120,150,100,100,0");
directory_grid.setColAlign("left,left,right,left,left,left,left");//set column values align
directory_grid.setColSorting("int,str,str,str,str,str,str");//set sorting
directory_grid.attachEvent("onRowDblClicked", function(id, ind){
if(directory_grid.cells(id,6).getValue()==1) {
opendir=directory_grid.cells(id,1).getValue();
increment_current_path(opendir);
}
});
directory_grid.init();//initialize grid
// toolbar for search criteria
search_toolbar=mainLayout.cells("b").attachToolbar();
// shortened
// search results listings
search_grid = mainLayout.cells("b").attachGrid();
search_grid.init();
// shortened
});