论坛首页 入门讨论版 EXT

grid的横向滚动条问题

浏览 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}页"
        })
     });
   
最后更新时间:2007-11-20
我也想问同样的问题
   
0 请登录后投票
最后更新时间: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: []
    });

   
0 请登录后投票
最后更新时间:2007-12-12
这个问题怎么解决?
   
0 请登录后投票
最后更新时间:2007-12-12
我也碰到了同样的问题
   
0 请登录后投票
最后更新时间:2008-07-18
没人知道吗
   
0 请登录后投票
论坛首页 入门讨论版 EXT

跳转论坛:
JavaEye推荐