Flex中如何通过selectionColor和selectionDisabledColor样式设置DataGrid的行选中与无效时颜色的例子
来源:互联网 发布:百度黑帽seo 编辑:程序博客网 时间:2024/06/06 09:01
接下来的例子演示了Flex中如何通过selectionColor和selectionDisabledColor样式,设置DataGrid的行选中与无效时颜色。
让我们先来看一下Demo(
可以右键View Source或点击这里察看源代码):
下面是完整代码(或点击这里察看): Download: main.mxml<?xml version="1.0" encoding="utf-8"?> 本文转自:http://blog.minidx.com/2009/04/09/2358.html
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:Array id="arr">
<mx:Object c1="Item 1A" c2="Item 1B" />
<mx:Object c1="Item 2A" c2="Item 2B" />
<mx:Object c1="Item 3A" c2="Item 3B" />
<mx:Object c1="Item 4A" c2="Item 4B" />
<mx:Object c1="Item 5A" c2="Item 5B" />
<mx:Object c1="Item 6A" c2="Item 6B" />
<mx:Object c1="Item 7A" c2="Item 7B" />
<mx:Object c1="Item 8A" c2="Item 8B" />
<mx:Object c1="Item 9A" c2="Item 9B" />
</mx:Array>
<mx:ApplicationControlBar dock="true">
<mx:CheckBox id="checkBox"
label="enabled:"
labelPlacement="left"
selected="true" />
</mx:ApplicationControlBar>
<mx:DataGrid id="dataGrid"
dataProvider="{arr}"
selectionColor="haloGreen"
selectionDisabledColor="haloSilver"
enabled="{checkBox.selected}"
allowMultipleSelection="true"
selectedIndex="3"
width="300"
rowCount="8">
<mx:columns>
<mx:DataGridColumn dataField="c1"
headerText="Column 1:" />
<mx:DataGridColumn dataField="c2"
headerText="Column 2:" />
</mx:columns>
</mx:DataGrid>
</mx:Application>
- Flex中如何通过selectionColor和selectionDisabledColor样式设置DataGrid的行选中与无效时颜色的例子
- Flex中如何通过itemRollOverColor和itemSelectionColor样式给列图ColumnChart设置选中/未选颜色的例子
- Flex中如何通过paddingTop样式设置TabNavigator控件内容与Tabs间距离的例子
- Flex中如何利用swatchGridBackgroundColor样式设置ColorPicker的样本颜色网格背景颜色的例子。
- wpf datagrid 样式怎么设置默认选中行的颜色
- Flex中如何通过selectedButtonTextStyleName样式,设置ToggleButtonBar选中按钮文本颜色
- Flex中如何通过disabledIcon样式和enabled属性在Button在改变有效/无效状态时改变图标的例子
- Flex中如何通过lineStroke样式改变LineChart图表线条颜色的例子
- Flex中如何通过backgroundImage, backgroundColor和backgroundAlpha样式,设置VBox的背景图片和背景颜色以及改变透明度
- Flex中如何给depthColors样式设置一个颜色数组给树Tree控件不同层设置不同颜色的例子
- Flex中如何设置CheckBox标签(Label)与主题(theme )颜色的例子
- Flex中如何设置CheckBox标签(Label)与主题(theme )颜色的例子
- Flex中如何通过backgroundImage和backgroundSize样式,设置VBox容器的背景图片以及大小
- Flex中如何通过titleStyleName和textIndent样式,设置Panel的标题
- Flex中如何通过getHeaderAt()函数以及selectedUpIcon,selectedOverIcon和selectedDownIcon样式给Accordion头部设置一个分割用图标的例子
- Flex中如何通过getHeaderAt()函数以及selectedUpIcon,selectedOverIcon和selectedDownIcon样式给Accordion头部设置一个分割用图标的例子
- Flex中如何通过监听collectionChange事件检测DataGrid的数据源是否改变的例子
- Flex中如何通过showCloseButton属性控制TitleWindow右上角关闭按钮有效/无效的例子
- 对路径"......"的访问被拒绝--解决办法
- 图片预览
- 不想恨,所以离开..
- POJ_1012
- log.isDebugEnabled()
- Flex中如何通过selectionColor和selectionDisabledColor样式设置DataGrid的行选中与无效时颜色的例子
- vs2008调试javascript 不能命中
- 多种计时器的比较与分析
- 三毛的老家:4月中旬了还在中雪!
- 小试Lombok,简化Java代码
- 通过Hook API调用打造进程监控程序
- Word 实用技巧整理
- 56.com flash http://www.56.com/deux4_97177389.swf
- MySQL error:Access denied for user 'root'@'localhost' (using password: YES)