Flex:使用 NumericStepper 作为 DataGrid 中的项目编辑器
我正在尝试使用数字步进器使数据网格中的一个字段可编辑。 我当前的尝试看起来正在工作,但 dataProvider 实际上并未更改。
根据我在十亿个不同地方读到的内容,语法应该是
< mx:DataGridColumn dataField="a" itemRenderer="mx.controls.NumericStepper" rendererIsEditor="true" editorDataField="value" / >
我已经尝试了这个主题的几种变体,但似乎没有任何效果。 我缺少什么?
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.
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有更多信息,我猜测您的 dataProvider 未声明为可绑定。
Without any more info, I would guess that your dataProvider is not declared as Bindable.
问题似乎是,我期望更改立即反映在 dataProvider 中,但直到编辑器失去焦点后才会应用它们。
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.