Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by apple on Dec 16, 2008 23:50
open dhtmlx forum
How to get the widths of the

Thanks for your help.

grid.cells(0,i).getWidth();

When the table is no data, there will be mistakes in the future.

I just want to get the width of the grid.Please help me.

Answer posted by Support on Dec 17, 2008 02:04
You can check DOM object of grid directly, as

var width = grid.entBox.offsetWidth;
Answer posted by Support on Dec 17, 2008 02:05
The width of column can be checked as

var width = grid.getColWidth(index);