Tag Archives: DataGrid

Flex中获得DataGrid中编辑前后的数据

问题:
在使用DataGrid进行数据编辑时, 我们不可避免的需要对数据的输入进行检验, 修正等错误.
解决方法:
监听DataGrid的editEnd事件:DataGridEvent.ITEM_EDIT_END.改事件中包含有正在编辑的DataGridColumn[列名], 编辑前的数据, 编辑结

More…

Posted in Flex | Tagged , , | 4 Comments

ActionScript中使用自定义组件 Use CustomUI in Flex with ActionScript

一: 需求
要求使用get ui获得一个UICompontent[DataGrid], 其中DataGrid某列的ItemEditor为ComboBox,且该UICompontent的右键菜单中有一个Item: 删除 [删除当前选定的行] 使用set value 来设定该UIComponten

More…

Posted in Flex | Tagged , , , , , | Leave a comment

在DataGrid初始化时进行排序

在很多情况下, 需要DataGrid初始化结束后立即进行排序.以下分别使用MXML与AS实现: MXML实现:
mx:DataGridColumn headerText=Price Ranges; sortCompareFunction = "sortRanges"&gt

More…

Posted in Flex | Tagged , , | Leave a comment

[Flex]DataGrid使用ActionScript增加列 Use AS Add DataGrid Column

More…

Posted in Flex | Tagged , , | Leave a comment