R – Providing values to components in a dataGrid

apache-flexcomponentsdatagriddataprovidernumericstepper

I have the follwoing. :

mx:DataGridColumn width="125"  headerText="Time" editable="false"
mx:itemRenderer
mx:Component
            mx:HBox
                   mx:NumericStepper id ="TimeHour"    stepSize="1" minimum="0" value="0" maximum="23"/
                   mx:NumericStepper id ="TimeMinute"  stepSize="5" minimum="0" value="0"  maximum="55"/
            /mx:HBox
                    /mx:Component
   /mx:itemRenderer
/mx:DataGridColumn

How do I provide values from the dataprovider (which is an array of objects) to these individual numeric steppers. dataField cannot be mentioned in the NumericStepper tag it seems.

Help.

P.N : IGNORE Start tag and End tgs of the mxml. Question is not being displayed correctly.

Best Answer

If I'm not misstaken you can access the data like this: < mx:NumericStepper value="{data.yourValue}" />

Related Topic