View Full Version : Ext.List & datastore loaded from XML file

18 Nov 2010, 2:42 AM
Hi everybody,

First please excuse me for my poor level in english, i'm french.

I'im currently trying to make an app that use an "Ext.list", i want to make datastore loaded from xml but it doesn't work and i don't understant why.

So take a look at my "index.js" file :

tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady : function() {
Ext.regModel('News', {
fields: ['title', 'resume','content']
store = new Ext.data.Store({
model: 'User',
model: 'News',
sorters: 'title',
proxy: {
type: 'ajax',
url: '/data.xml',
reader: {
type: 'xml',
record: 'news'
autoLoad: true

var list = new Ext.List({
fullscreen: true,

itemTpl : '{firstName} {lastName}',
grouped : true,
indexBar: true,

store: store

This is my data.xml file :


Do you have an idea ? to make it work?

Thank you, crackers-belin