1 Reply Latest reply on Jul 10, 2007 9:47 AM by kokochka

    cellRenderer in Datagrid

      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.
        • 1. Re: cellRenderer in Datagrid
          kokochka Level 1
          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());
          }