Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Joe on Oct 15, 2007 12:36
open dhtmlx forum
100% dhtmlxGrid column width

I would like to create a table similar to a Windows Explorer list view where the grid takes up 100% of the page width, and the last column is just a filler column taking up the remaining width to fill up 100% of the page.

Do you have a sample CSS or script to create this grid?
Answer posted on Oct 16, 2007 01:36
Such mode can be enabled by js command, while defining column widths you can use

grid.setInitWidths("100,150,100,*");

The * as width means that column will be created as filler, it will take all available space and automatically adjust on window resize.