Ok, it appears that placing buttons in datagrids have changed in Flash
Builder 4...

 

Typically I'd do something like this:

<mx:DataGridColumn headerText="Paid" dataField="dtPaid"
labelFunction="Paid_LabelFunc" width="60">

      <mx:itemRenderer>                         

            <mx:Component>

                  <mx:Button label="Pay Now"/>

            </mx:Component>

</mx:itemRenderer>

</mx:DataGridColumn>

 

However these components have changed, but they do not work...

 

<mx:DataGridColumn headerText="Paid" dataField="dtPaid"
labelFunction="Paid_LabelFunc" width="60">

      <mx:itemRenderer>                         

            <fx:Component>

                  <s:Button label="Pay Now"/>

            </fx:Component>

</mx:itemRenderer>

</mx:DataGridColumn>

 

Gives me the error:

 

TypeError: Error #1034: Type Coercion failed: cannot convert
yourinfoinnercla...@133490a1 to
mx.controls.listClasses.IListItemRenderer.

 

Moreover; I'm trying to figure out how to either place a text label
"PAID" or a button if the item has not been paid. Any ideas on how this
is done?

 

 Thanks

    Scott

Reply via email to