DataGrid组件创建图视的解决 |
| 作者:佚名 来源:闪吧 作者: newye 更新:2007-1-13 21:01:37 错误报告 我要投稿 |
效果:
点击浏览该文件 Cell Renderer API更详细的应用: http://www.flash-db.com/Tutorials/cellrenderer/ 我简单介绍图示的创建,把flash-db的代码做了些修改 as:
import mx.controls.gridclasses.DataGridColumn; var column = new DataGridColumn("icon"); column.headerText = "icon"; column.width = 50; column.cellRenderer = "IconCellRenderer"; myDataGrid_dg.addColumn(column); var column = new DataGridColumn("data"); column.headerText = "data"; column.width = 300; myDataGrid_dg.addColumn(column); myDataGrid_dg.resizableColumns = false; myDP = new Array(); for (var i=0; i<3; i++) myDP.addItem({icon:i, data:"data"+i}); myDataGrid_dg.dataProvider = myDP 文件打包下载:
点击浏览该文件
|
|
| 文章录入:skyuu 责任编辑:skyuu |
|
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |