I am trying to make one field in a datagrid editable with a numeric stepper. My current attempts look like they are working, but the dataProvider is not actually being changed.
我正在尝试使用数字步进器在数据网格中创建一个字段。我当前的尝试看起来像是在工作,但dataProvider实际上并没有被更改。
Based on what I have read in a billion different places, the syntax should be
根据我在十亿个不同的地方读到的内容,语法应该是
< mx:DataGridColumn dataField="a" itemRenderer="mx.controls.NumericStepper" rendererIsEditor="true" editorDataField="value" / >
I have tried several variations on this theme, and nothing seems to work. What am I missing?
我在这个主题上尝试了几种变体,似乎没有任何效果。我错过了什么?
2 个解决方案
#1
0
Without any more info, I would guess that your dataProvider is not declared as Bindable.
没有任何更多的信息,我猜你的dataProvider没有被声明为Bindable。
#2
0
The issue it seems, was that I was expecting changes to be instantly reflected in the dataProvider, but they are not applied until the editor loses focus.
看起来问题是,我希望更改能够立即反映在dataProvider中,但是在编辑器失去焦点之前它们不会被应用。
#1
0
Without any more info, I would guess that your dataProvider is not declared as Bindable.
没有任何更多的信息,我猜你的dataProvider没有被声明为Bindable。
#2
0
The issue it seems, was that I was expecting changes to be instantly reflected in the dataProvider, but they are not applied until the editor loses focus.
看起来问题是,我希望更改能够立即反映在dataProvider中,但是在编辑器失去焦点之前它们不会被应用。