3.2.0

checkbox state in grid

I use the following lines of code in my grid to display certain columns with checkbox along with text -

{i is the column number}

grid.setCellTemplate(new AW.Templates.CheckBox, i);
grid.setCellValue(false,i);

Interesting thing is - when the incoming text for a column is emty string the checkbox is displayed in "unchecked state"

But when there is some text in a column the checkbox is displayed with a '-' sign.
if you click once the '-' sign disappears and checkbox is in unchecked state.Click again and it gets checked.

any pointers?
I need all checkboxes in unchecked state at first load.
ashii
March 14,
Alex,

Any suggestions on this one please?
ashii
March 17,
The code which you are using to set the checkbox value is correct and works fine for me. Could it be that you put it before assigning cell text and cell text overwrites the setCellValue method? If so, try moving the setCellValue call after setCellText.
Alex (ActiveWidgets)
March 18,

This topic is archived.

See also:


Back to support forum