87,907
社区成员
发帖
与我相关
我的任务
分享
listeners:
{
"load":function(store,records,optins)
{
var count=records.length; //等于var count=grid.getStore().getCount()
if(count<1) //count==0
{
grid.hide();
}
else
{
grid.show();
}
}
var grid = new Ext.grid.GridPanel({
....
viewConfig:{
....
emptyText:'No rows to display'
},
....
});