DATAGRID Preventing enter or tab from moving onto the next c
The default behavior of editing a cell in a Flex DataGrid is such that if you hit the enter key is moves to the next cell down,and tab moves to the next cell to the right. If you want it so that when you hit tab or enter,that it just commits that current cell and stays on that row in uneditted mode you'll want to combine callLater() and the itemEditEnd event. <mx:Script> <mx:DataGrid editable="true" sortableColumns="false" id="dg" itemEditEnd="callLater(maintainFocus)" id="dg">......</mx:DatgaGrid> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |