I am using grid and have set enableAutoHeight(true, 150).
In IE 7, the vertical scrollbar appears even when there are one or two records. In IE 6 and FF the scrollbar
appers only if there are more 7 records.
Below is the sample code:
var transGrid= new dhtmlXGridObject(‘gridbox’);
transGrid.setImagePath("…/scripts/dhtmlx/dhtmlxGrid/codebase/imgs/");
transGrid.setHeader(“Fund,Amount,Obligation,Adjustments,Receipts,Balance”);
transGrid.setInitWidths(“220,120,120,120,120,*”);
transGrid.setColAlign(“left,right,right,right,right,right”);
transGrid.setColTypes(“ro,edn,ron,ron,ron,ron”);
transGrid.setNumberFormat(“0,000.00”,1);
transGrid.setNumberFormat(“0,000.00”,2);
transGrid.setNumberFormat(“0,000.00”,3);
transGrid.setNumberFormat(“0,000.00”,4);
transGrid.setNumberFormat(“0,000.00”,5);
transGrid.enableAutoHeight(true,150);
transGrid.enableAutoWidth(true,840);
transGrid.enableLightMouseNavigation(false);
transGrid.setPagingSkin(“toolbar”);
transGrid.submitOnlyChanged(true);
transGrid.init();
transGrid.setSkin(“light”);
transGrid.enableEditTabOnly(1);
transGrid.enableResizing(“true,false,false,false,false,false”);
transGrid.setSizes();
Could you please suggest a solution.
Thanks in advance.
In IE 7, the vertical scrollbar appears even when there are one or two records.
Unfortunately we cannot reproduce this issue locally.
>>In IE 6 and FF the scrollbar appers only if there are more 7 records.
This is expected behavior because of you have set maximum height for the grid:
transGrid.enableAutoHeight(true,150);
If grid’s height is 150px, vertical scroll will appear.