:: Forum >>

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
Friday, March 14, 2008
Alex,

Any suggestions on this one please?
ashii
Monday, March 17, 2008
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)
Tuesday, March 18, 2008

This topic is archived.


Back to support forum

Forum search