Hi, I have this code
Code:
Ext.onReady(function(){
var store = new Ext.data.XmlStore({
proxy: new Ext.data.HttpProxy({
url: 'http://localhost/TestUserControlYUI.NetEnvironment/sheldon.xml'
}),
record: 'Item', // records will have an "Item" tag
id: 'ASIN',
totalRecords: '@total',
remoteSort: true,
fields: [
// set up the fields mapping into the xml doc
// The first needs mapping, the others are very basic
{name: 'Author', mapping: 'ItemAttributes > Author'},
'Title', 'Manufacturer', 'ProductGroup'
]
});
var grid = new Ext.grid.GridPanel({
width:700,
height:500,
title:'ExtJS.com - Browse Forums',
store: store,
trackMouseOver:false,
disableSelection:true,
loadMask: true,
columns: [
{header: "Author", width: 120, dataIndex: 'Author', sortable: true},
{header: "Title", width: 180, dataIndex: 'Title', sortable: true},
{header: "Manufacturer", width: 115, dataIndex: 'Manufacturer', sortable: true},
{header: "Product Group", width: 100, dataIndex: 'ProductGroup', sortable: true}
],
// paging bar on the bottom
bbar: new Ext.PagingToolbar({
pageSize: 5,
store: store,
displayInfo: true
})
});
// render it
grid.render('topic-grid');
store.load({params:{start:0, limit:5}});
});
The problem is that not show nothing but i don't know why
Tranks for help me.