隐藏Grid的一列,去除store一列

隐藏一列

Grid的配置

getRowClass : function(record, rowIndex, p, store) {
                            if(!record.data.assignee){ //如果任务没有分配,则隐藏任务。现用于隐藏会签的主任务
                                return 'x-grid-record-hidden';
                            }

 

Css样式

.x-grid-record-hidden table{
    display: none
}

 


删除一列

listeners : {
                        load : function(store, record, options){
                            for(var i=0; i < record.length; i++){
                                if(!record[i].data.assignee){
                                    //如果任务没有分配,则删除。现用于删除会签的主任务
                                    store.remove(record[i]);
                                }
                            }
                        }
                    }

你可能感兴趣的:(css)