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