j.steele
12-03-2008, 11:18 PM
I've built a custom MXML component called StatusCB which based on an HBox and has a ComboBox inside of it. I'm trying to use it as the itemEditor for one of the columns in a DataGrid.
The dataGridColumn in question looks like this:
<mx:DataGridColumn headerText="Status" dataField="status" editable="true" itemEditor="StatusCB" editorDataField="newStatus"/>
StatusCB.mxml is in the same directory as the file that contains the dataGrid, but I get an error with the following message on the line with that DataGridColumn:
Definition StatusCB Could Not Be Found
Is there something more I need to do to reference that file? do I need to create an xmlns for the directory I'm in?
Thanks in advance.
The dataGridColumn in question looks like this:
<mx:DataGridColumn headerText="Status" dataField="status" editable="true" itemEditor="StatusCB" editorDataField="newStatus"/>
StatusCB.mxml is in the same directory as the file that contains the dataGrid, but I get an error with the following message on the line with that DataGridColumn:
Definition StatusCB Could Not Be Found
Is there something more I need to do to reference that file? do I need to create an xmlns for the directory I'm in?
Thanks in advance.