9 Replies Latest reply on Jan 25, 2011 4:11 AM by majester8425

    Help : Trying to add NumericStepper as ItemEditor/Renderer results in Type Error: Error #1034:

    majester8425 Level 1

      I have a datagrid to which I want to add an item renderer/editor I am using the following, but it results in the following error. Any ideas.

       

      TypeError: Error #1034: Type Coercion failed: cannot convert componants::wrWrip2InnerClass0@74bb479 to mx.controls.listClasses.IListItemRenderer.

       

      <mx:DataGridColumn headerText="WRIP Run Order" rendererIsEditor="true" >

       

       

           <mx:itemRenderer>

       

       

                <fx:Component>

       

       

                     <s:ItemRenderer>

       

       

                          <mx:NumericStepper stepSize="1" maximum="10" value="{data.wrip_order}" />

       

       

                     </s:ItemRenderer>

       

       

                </fx:Component>

       

           </mx:itemRenderer>

       

       

      </mx:DataGridColumn>

       

      It works fine as a simple inline version, but I need a little more control.

       

      <mx:DataGridColumn

       

       

                dataField="wrip_order"

                headerText="WRIP Run Order"

                itemRenderer="mx.controls.NumericStepper"

                rendererIsEditor="

      true"

                editorDataField="

      value">

       

      </mx:DataGridColumn>