巴鲁's profile岩屋PhotosBlogListsMore ![]() | Help |
|
September 18 Flex 中DataGrid可编辑的优先级关系这两天在做一个FLEX的后台,用FLEX BUILDER3.0自动生成的数据表有点问题,所以改成自己做了。自己做的过程中发现,如果是让某一个dataField不可编辑。FLEX BUILDER3.0自动生成的代码是用 dataGrid.addEventListener(DataGridEvent.ITEM_EDIT_BEGINNING, editCellHandler); private function editCellHandler(e:DataGridEvent):void 我觉得有点烦琐,所以就自己做了一下几种尝试了: 1.不好用的方法 <mx:DataGrid id="videolist" width="100%" height="100%" > 2.正确的做法 <mx:DataGrid id="videolist" width="100%" height="100%" editable="true“/>
看来还有有优先级别的。 TrackbacksThe trackback URL for this entry is: http://snowyrock.spaces.live.com/blog/cns!B8CBEB7169880B1D!395.trak Weblogs that reference this entry
|
|
|