2
我的新加载的ExtJS的和ExtJS的3.2 工作在我的数据不被加载,但如果评论数据列显示任何人都可以请帮助我。我的代码是数据没有ExtJS的3.4
{
xtype:'panel',
title:"Search Result",
items:[{
xtype :'grid',
store: new Ext.data.Store({
autoDestroy: true,
fields: ['Name', 'Roll', 'Class'],
root: 'records',
// proxy: proxy,
data: [
{Name :false, Roll: 'a', Class: 20},
{Name :true, Roll: 'b', Class: 25}
]
}),
columns: [{
text: 'Name',
id: 'company',
header: 'Name',
width: 130,
sortable: false,
hideable: false,
dataIndex: 'Name'
},
{
text: 'Roll',
width: 130,
header: 'Name',
dataIndex: 'Roll',
hidden:false
},
{
text: 'Class',
width: 130,
header: 'Class',
dataIndex: 'Class',
hidden:false
}]
}]
}
内部面板我正在使用网格。任何人都可以帮助我。
谢谢。我删除了'root'和'reader'。结果是一样的。在调试器中,我得到第一个数据里面的错误 – David
删除数据数组后的逗号 –
问题是如果我放置数据[]然后页面本身不加载。我也删除了逗号。没有语法错误。 – David