River_hy 2011-08-02 17:24
浏览 263
已采纳

PagingToolBar添加后panel就无法显示

在一个GridPanel里面添加一个PagingToolBar作为bbar后,这个Panel就无法显示了,用firebug调试,发现这个代码运行到PagingToolBar的定以后就异常结束了,之后的代码根本不运行的,肿么回事?Ext版本是2.2.1

PagingToolBar的定义如下
[code="javascript"]
var alertStore = new Ext.data.Store({
proxy:new Ext.data.MemoryProxy(),
reader:new Ext.data.JsonReader({id:'rid'},[
{name:'rid'},
{name:'alert_time'},
{name:'alert_type'},
{name:'alert_descr'},
]),
sortInfo:{
field:'alert_time',
direction:'desc'
}
});
var pagingBar = new Ext.PagingToolbar({
pageSize: 25,
store: alertStore ,
displayInfo: true,
displayMsg: 'Displaying topics {0} - {1} of {2}',
emptyMsg: "No topics to display",
});

var wpanel = new Ext.grid.GridPanel({
//...other codes
tbar:tbar,
bbar:pagingBar
});
//然后把wpanel作为一个tabpanel添加进别的容器
//...
[/code]

  • 写回答

1条回答

  • myali88 2011-08-02 17:40
    关注

    [code="java"]emptyMsg: "No topics to display", [/code]
    这里多了一个逗号,改改,再试一下!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?