当前位置: 代码迷 >> Web前端 >> PropertyGrid报表的使用
  详细解决方案

PropertyGrid报表的使用

热度:117   发布时间:2012-11-23 00:03:43.0
PropertyGrid表格的使用
Ext.grid.PropertyGrid
  配置项:
            customEditors:自定义编辑器。内置编辑器有string、date、number、boolean
            source:表格要显示的数据对象
 
      主要方法:
            getSource():取得数据源对象
            setSource( Object source ):设置数据源对象,数据源格式如下:
                  grid.setSource({
                        "(name)": "My Object",
                        "Created": new Date(Date.parse('10/15/2006')),
                        "Available": false,
                        "Version": .01,
                        "Description": "A test object"
                  });