Skip to main content
June 29, 2006
Question

cellRenderer in Datagrid

  • June 29, 2006
  • 1 reply
  • 280 views
I have created a Datagrid that uses a checkbox cellRenderer to make one of the columns checkBoxes. I can setup a Listener that uses the cellPress event, but I want the user to select an item using the checkbox. I can't seem to find a way to catch the click event on the checkbox. Obviously they don't have instance names that you can target. Any help here would be much appreciated.
This topic has been closed for replies.

1 reply

Inspiring
July 10, 2007
In the cellRenderer class, you have to CONVERT checkbox status boolean to STRING. If you attribute it in its BOOLEAN format, it doesn't work (at least for me).

public function click()
{
trace("check.selected : "+check.selected);
var Bool= check.selected;
listOwner.dataProvider.editField(getCellIndex().itemIndex, getDataLabel(), Bool.toString());
}