Flex: using NumericStepper as itemEditor in DataGrid

I am trying to make one field in a datagrid editable with a numeric step. My current attempts look like it works, but the dataProvider doesn't actually change.

Based on what I've read in billions of different places, the syntax should be

<mx: DataGridColumn dataField = "a" itemRenderer = "mx.controls.NumericStepper" rendererIsEditor = "true" editorDataField = "value" /> 

I've tried several variations of this theme and nothing seems to work. What am I missing?

0


source to share


2 answers


The problem is that I expected the changes to be reflected in the dataProvider immediately, but they don't get applied until the editor loses focus.



0


source


Without further information, I would assume that your dataProvider is not declared as Bindable.



0


source







All Articles