Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by tk on Sep 22, 2009 10:14
open dhtmlx forum
Vertical scrollbar issue in IE

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.
Answer posted by dhxSupport on Sep 23, 2009 02:30
>>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.