+ -
当前位置:首页 → 问答吧 → EXT中怎么隐藏这个属性

EXT中怎么隐藏这个属性

时间:2011-07-31

来源:互联网

JScript code

Ext.titansoft.bpm.MutiObligeeInputGrid = Ext.extend(Ext.ux.grid.PropertyGrid,{
    
    constructor:function(config){
        config = config || {};
        
        Ext.apply(config,{            
            autoScroll:true,
            columnLines:true,
            listeners:{
                afteredit : this.onAfterEditHandler.createDelegate(this)
            },
            source:[{
                label:'权证类型',
                editor:{
                    xtype:'combo',
                    typeAhead: true,
                    triggerAction: 'all',
                    store:new Ext.data.JsonStore({   
                        fields : ['id','name','hiddenStatus'],
                        data : Ext.titansoft.bpm.resources.findByParent('00000000000000000000300010001000').list
                    }),
                    displayField:'name',
                    selectOnFocus : true,    
                    forceSelection : true,
                    name:'warrantType.id',
                    valueField:'id',
                    mode:'local'
                }
            },{
                label:'权证编号',
                editor:{
                    xtype:'textfield',
                    maxLength:32,
                    name:'warrantNo'                    
                }
            },{
                label:'产权比例',
                editor:{
                    xtype:'textfield',
                    name:'rightScale',
                    maxLength:32                
                }
            },{
                label:'产权来源',
                editor:{
                    xtype:'textfield',
                    name:'rightSource',
                    maxLength:100            
                }
            },{
......


比如要隐藏 权证编号 ,该怎么弄。。。

作者: xuyisen_1987   发布时间: 2011-07-31

label:'权证编号',
hidden:true,
  editor:{
  xtype:'textfield',
  maxLength:32,
  name:'warrantNo'  
  }

作者: MuBeiBei   发布时间: 2011-07-31

加hidden:true,

作者: MuBeiBei   发布时间: 2011-07-31

引用 1 楼 mubeibei 的回复:

label:'权证编号',
hidden:true,
editor:{
xtype:'textfield',
maxLength:32,
name:'warrantNo'
……

不是每个组件对象都有hidden:true这个属性的 楼主得组织好source 重新setSource(source)
楼主的意图是什么 单单隐藏掉这一行数据么?

作者: fanchuanzhidu   发布时间: 2011-07-31