【发布时间】:2014-02-25 12:08:45
【问题描述】:
我想在我的 ExtJs 4.2 应用程序中修复我的表格/网格标题,以便标题在滚动时始终可见。我的应用程序中的主网格有一个固定的标题,并按照本文底部的代码实现。 它不工作,我不知道为什么...... 我尝试使用 split 属性,但它也不起作用...... :(
这是代码:
function openThePopup() {
var win = new Ext.Window({
modal : true,
height : 500,
width : 900,
plain : true,
border : false,
resizable : false,
maximizable : false,
draggable : true,
closable : true,
closeAction : 'destroy',
title : 'Title',
autoScroll : true,
buttonAlign : 'center',
items : [ {
xtype : 'grid',
id : 'theGrid',
store : theStore,
border : 0,
layout : 'fit',
margins : '5 0 0 0',
split : true,
columns : [ {
text : 'Country',
dataIndex : 'country'
}, {
text : 'City',
dataIndex : 'city'
}, {
text : 'ZIP',
dataIndex : 'zip'
}, {
text : 'Street',
dataIndex : 'street',
width : 200
}, {
text : location,
dataIndex : 'name',
width : 200
} ],
listeners : {
itemdblclick : function(t, record, item, index, e, eOpts) {
...
}
}
} ],
buttons : [ {
onClick : function() {
...
}
} ]
}).show();
}
感谢任何帮助。
非常感谢您。
祝大家好运。
【问题讨论】:
标签: header grid fixed extjs4.2