当前位置: 代码迷 >> Ajax >> ext 在项目中gridpanel使用时,第一次打开此面板没有关问题第二次打开,或打开其他面板就出有关问题 刷新一上才行
  详细解决方案

ext 在项目中gridpanel使用时,第一次打开此面板没有关问题第二次打开,或打开其他面板就出有关问题 刷新一上才行

热度:234   发布时间:2013-01-02 13:08:44.0
ext 在项目中gridpanel使用时,第一次打开此面板没问题第二次打开,或打开其他面板就出问题 刷新一下才行
本帖最后由 viaco2love 于 2012-04-01 23:58:35 编辑
在项目中gridpanel使用时,第一次打开此面板没问题第二次打开,或打开其他面板就出问题
刷新一下才行

Ext.onReady(function() {
var grid = new Ext.grid.GridPanel({
el : 'BindUserHandle', // 对应页面的<div id="grid"></div>
columns: [
                {
                    xtype: 'gridcolumn',
                    dataIndex: 'string',
                    header: 'String',
                    sortable: true,
                    width: 100
                }
            ],
width : 320,
height : 200
});
grid.render();

});

------解决方案--------------------
出了什么问题?描述下