+ -
当前位置:首页 → 问答吧 → PropertyGrid中如何自定义每列的宽度

PropertyGrid中如何自定义每列的宽度

时间:2011-03-30

来源:互联网

PropertyGrid中,width只能指定两列共同的宽度,我想自定义每列的宽度,该怎么做?我是新手,api也查了,网上也搜了,没找到结果,请大家帮帮忙。

作者: houzhihoujue90   发布时间: 2011-03-30

JScript code
g.PropertyColumnModel.superclass.constructor.call(this, [
            {header: this.nameText, width:50, sortable: true, dataIndex:'name', id: 'name', menuDisabled:true},
            {header: this.valueText, width:50, resizable:false, dataIndex: 'value', id: 'value', menuDisabled:true}
        ]);

PropertyGrid.js 第150行的这段, 其中2个width:50决定了宽度各占50%, 可以扩展或者覆盖它

作者: aj3423   发布时间: 2011-03-30

热门下载

更多