2 Replies Latest reply on Oct 23, 2006 12:33 PM by michael_ramirez44

    DataGrid ItemRender

    michael_ramirez44 Level 1
      I have a dataGrid with dynamic columns. I render the first column as a Checkbox but I can't get the CheckBox label to be the data in the column. If I do the following I get "Some Label" next to every CheckBox:

      var filterRenderer:ClassFactory = new ClassFactory(CheckBox);
      filterRenderer.properties = {label: "Some Label"};
      newColumn.itemRenderer = filterRenderer;

      And if I do this I get the data in the column but no CheckBox:

      var filterRenderer:ClassFactory = new ClassFactory(CheckBox);
      filterRenderer.properties = {label: data.dataField};
      newColumn.itemRenderer = filterRenderer;