1

I am using the following code, to create an AdvancedDataGridColumn, to be added to an AdvancedDataGrid:

var columnValue:AdvancedDataGridColumn=new AdvancedDataGridColumn();
columnValue.headerText="Value";
columnValue.dataField="value";          
columnValue.itemRenderer=new ClassFactory(valueRenderer);
columnValue.rendererIsEditor = true;
columnValue.editable = true;

I would like to supply the AdvancedDataGrid with a dataProvider that contains a range of objects, some of which DON'T have the "value" field. When such an object is encountered, the grid should not display any text for it in the "value" column (It will have info in another column, and I don't need its "value" data).

How can this be done?

summerbulb
  • 5,709
  • 8
  • 37
  • 83
  • You can code that directly in the renderer; or you can use a labelfunction. – JeffryHouser Jun 18 '13 at 13:35
  • @Reboog711 Can you direct me to an example? – summerbulb Jun 18 '13 at 13:50
  • I don't have time to put together a sample. Documentation is pretty good on both creating renderers and using a labelFunction. It looks like you're already using a custom itemRenderer, so I would modify / extend that. Conceptually, in a `dataChange()` event handler have a conditional that introspects the data object somehow and sets the display value based on the data. – JeffryHouser Jun 18 '13 at 13:58

0 Answers0