Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Craig Efrein on Feb 10, 2009 02:20
open dhtmlx forum
Set Grid With Based on Column Widths - Firefox

Hello,

In IE6 and IE7 if I define my inital column widths

grid.setInitWidths('62,195,245,475') and I define the <div id=grid width=\"979px\"> there is no extra space between the last column and the grid frame.

In Firefox 2 and 3 If I do the same thing, I end up with a 20px space between the last column and the grid frame. How can I automatically resize the div based on the width of the columns in firefox that will also work in IE.


Craig
Answer posted by dhxSupport on Feb 10, 2009 02:40

Use mygrid.enableAutoWidth(true). This method changes grid's container size on the fly to fit total width of grid columns