setColWidth doesn't work

Hi,

I’ve the the full std suite and I’m trying to set to 10px the width of the first column of a grid I have.
This is how I initialize the grid:

[code] gridCustomers = cellCustomers.attachGrid();
gridCustomers.setImagesPath(‘dhtmlx/imgs/’);

gridCustomers.setHeader(["","Rag. soc.", "Catgoria", "Via", "Città", "CAP", "Provincia", "Regione", "Stato", "Trattativa"]);
gridCustomers.attachHeader("#rspan,#text_filter,#select_filter,#rspan,#text_filter,#numeric_filter,#select_filter,#select_filter,#select_filter,#select_filter");
gridCustomers.setColTypes("ro,ro,ro,ro,ro,ro,ro,ro,ro,ro");
gridCustomers.setColSorting("str,str,str,str,str,int,str,str,str,str");
gridCustomers.enableMultiselect(false);
gridCustomers.setColWidth(0,"10");
gridCustomers.init();
gridCustomers.load("data/customerList.php?act=list");[/code]

Any dimension I insert into the size nothing change…
Is there anything else I should do?
Is the setColWidth enabled for the free standard version?

Thanks in advance,
Samuel

setColWidth() method should be applied after the init of the grid

Thanks,

it worked :slight_smile:

Samuel

Dhtmx live designer (3.x) puts setColWidth before init(), so it does not work!!!
Could you please fix it?
thanks
Alberto

The issue will be considered.
Thank you for your response.

Unfortunately the issue cannot be reproduced locally.
Building the grid visual designer uses the setInitWidths() method.
Could you clarify the exact steps to reconstructed the issue.