3.2.0

dynamic column width change

I'm usign ->
getCellTemplate(col_number).setStyle("width",col_width + "px");

It works for any column exept col 0 and 1 ??????
seb
March 19,
OK I can set it once, but after even if I put another width property, he doesn't put the value.
seb
March 19,
I tried this obj.setColumnWidth(nb_pixel, col) and it doesn't work, but if I use obj.getCellTemplate(0,0).setStyle("width", "40px"); it works for the passed row...
Is that a bug ?
seb
March 20,
alert( oCombo.getColumnWidth(0) );
oCombo.setColumnWidth(1,0);
alert( oCombo.getColumnWidth(0) );
oCombo.refresh();

If I do that, it shows the right value in both alert, but he can't display them right.

Any idea ?
seb
March 20,
obj.setColumnWidth(40, 0); // set first column width to 40px

The code above should work. If it does not - there might be more than one rule with the same selector in the last stylesheet, like

#grid .aw-column-0 {width: 100px}
#grid .aw-column-0 {color: red}

Another possible problem - the last stylesheet has different media attribute i.e. @media print
Alex (ActiveWidgets)
March 20,

This topic is archived.

See also:


Back to support forum