Flex中允许List或DataGrid控件中同时选中多个项目
2008-12-12 12:24
302 查看
Flex中允许List或DataGrid控件中同时选中多个项目
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
verticalAlign="middle"
backgroundColor="white">
<mx:Array id="arr">
<mx:Object col1="One.1" col2="One.2" col3="One.3" />
<mx:Object col1="Two.1" col2="Two.2" col3="Two.3" />
<mx:Object col1="Three.1" col2="Three.2" col3="Three.3" />
<mx:Object col1="Four.1" col2="Four.2" col3="Four.3" />
<mx:Object col1="Five.1" col2="Five.2" col3="Five.3" />
<mx:Object col1="Six.1" col2="Six.2" col3="Six.3" />
<mx:Object col1="Seven.1" col2="Seven.2" col3="Seven.3" />
<mx:Object col1="Eight.1" col2="Eight.2" col3="Eight.3" />
</mx:Array>
<mx:ApplicationControlBar dock="true">
<mx:Form styleName="plain">
<mx:FormItem label="allowMultipleSelection:">
<mx:CheckBox id="checkBox" selected="true" />
</mx:FormItem>
</mx:Form>
</mx:ApplicationControlBar>
<mx:List id="list"
allowMultipleSelection="{checkBox.selected}"
dataProvider="{arr}"
labelField="col1"
verticalScrollPolicy="on" />
<mx:DataGrid id="dataGrid"
allowMultipleSelection="{checkBox.selected}"
dataProvider="{arr}"
verticalScrollPolicy="on" />
</mx:Application>
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
verticalAlign="middle"
backgroundColor="white">
<mx:Array id="arr">
<mx:Object col1="One.1" col2="One.2" col3="One.3" />
<mx:Object col1="Two.1" col2="Two.2" col3="Two.3" />
<mx:Object col1="Three.1" col2="Three.2" col3="Three.3" />
<mx:Object col1="Four.1" col2="Four.2" col3="Four.3" />
<mx:Object col1="Five.1" col2="Five.2" col3="Five.3" />
<mx:Object col1="Six.1" col2="Six.2" col3="Six.3" />
<mx:Object col1="Seven.1" col2="Seven.2" col3="Seven.3" />
<mx:Object col1="Eight.1" col2="Eight.2" col3="Eight.3" />
</mx:Array>
<mx:ApplicationControlBar dock="true">
<mx:Form styleName="plain">
<mx:FormItem label="allowMultipleSelection:">
<mx:CheckBox id="checkBox" selected="true" />
</mx:FormItem>
</mx:Form>
</mx:ApplicationControlBar>
<mx:List id="list"
allowMultipleSelection="{checkBox.selected}"
dataProvider="{arr}"
labelField="col1"
verticalScrollPolicy="on" />
<mx:DataGrid id="dataGrid"
allowMultipleSelection="{checkBox.selected}"
dataProvider="{arr}"
verticalScrollPolicy="on" />
</mx:Application>
相关文章推荐
- PB如何获取列表框中同时选中的多个项目
- Flex中利用CheckBox对DataGrid控件中的项目进行过滤的例子
- list 函数 同时为多个变量赋值
- tomcat共享bin目录,配置文件私有,方便多个项目同时部署做依赖调试。
- Eclipse下使用git向一个分支同时推送多个项目
- JavaScript如何从listbox里同时删除多个项目
- JavaScript如何从listbox里同时删除多个项目
- idea 设置同时打开多个项目
- tomcat+spring+jndi同时部署多个项目配置多数据源
- git项目同时支持多个远端仓库
- Intellij IDEA同时打开多个项目
- 小技巧:Visual Studio 如何设置同时启动多个项目
- idea同时启动多个项目,启动不起来,以及打不开默认页面解决方法
- Eclipse Jetty GWT 同时调试多个项目的配置方法
- Flex AIR程序实现多任务即同时打开多个相同应用ID的AIR程序,如QQ多登录
- 高亮CheckBoxList选中的项目
- 同一个敏捷团队如何同时做多个项目?
- IDEA同时打开多个项目
- Intellij IDEA 15 如何同时打开多个项目
- android 同时点击多个button 避免同时响应,只响应一个点击事件 (是否允许多点触控)