浏览 1307 次
|
该帖已经被评为新手帖
|
|
|---|---|
| 作者 | 正文 |
|
最后更新时间:2007-11-19
做了一个grid,有横向滚动条,但是拉动滚动条的时候,cell正常的来回滚动,但是title没有刷新,看上去还是原来没有滚动的样子。
下面是相关代码
var cm = new Ext.grid.ColumnModel([
{header: "aa", width: 150, dataIndex: 'aa', sortable: true},
{header: "bb", width: 80, dataIndex: 'bb', sortable: true},
{header: "cc", width: 80, dataIndex: 'cc', sortable: true},
{header: "dd", width: 40, dataIndex: 'dd', sortable: true},
{header: "ee", width: 150, dataIndex: 'ee', sortable: true},
{header: "ff", width: 40, dataIndex: 'ff', sortable: true},
{header: "gg", width: 150, dataIndex: 'gg', sortable: true}
]);
var grid = new Ext.grid.GridPanel({
store: ds,
cm: cm,
sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
loadMask: true,
width: 708,
height: 300,
id: 'grid',
frame:true,
tbar: new Ext.PagingToolbar({
pageSize: 10,
store: ds,
displayInfo: true,
displayMsg: '当前显示 {0} - {1}条 共 {2}条',
emptyMsg: "没有记录",
beforePageText: "第",
afterPageText: "页 共{0}页"
})
});
声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
|
| 返回顶楼 | |
|
最后更新时间:2007-11-20
我也想问同样的问题
|
|
| 返回顶楼 | |
|
最后更新时间:2007-11-20
grid是放在FormPanel里面的
var simpleForm = new Ext.FormPanel({
labelAlign: 'left',
title: 'abc',
buttonAlign:'left',
bodyStyle:'padding:5px',
autowidth: true,
autoheight: true,
frame:true,
labelWidth:80,
items: [grid],
buttons: []
});
|
|
| 返回顶楼 | |
|
最后更新时间:2007-12-12
这个问题怎么解决?
|
|
| 返回顶楼 | |
|
最后更新时间:2007-12-12
我也碰到了同样的问题
|
|
| 返回顶楼 | |
|
最后更新时间:2008-07-18
没人知道吗
|
|
| 返回顶楼 | |





