View Full Version : TreeStore.load() problem : No items available (localStorage)

Yoann M.
2 May 2011, 8:33 AM
Hy all,

I have some problem to refresh a nestedList :
I 'm trying to load associated treeStore of a nestedList in order to actualise it
Therefore, as soon as I load the treeStore (ParamStore.load() in the above example) "no items are available" is sent ...

There's my code

var param = {
text: 'typeParam',items: [{
text: 'Proxy', id: '0'},{
text: 'Navigation',items: [{
text: 'Affichage', id : '10'},{
text: 'Bouton fonctions', id: '11', card:'BtFonction_form',leaf: true },{
text: 'autre parametre', id: '12'}

ParamModel = new Ext.regModel('param', {
fields: [
{name: 'text', type: 'string'},
{name: 'id', type: 'string'},
{name: 'card', type: 'string'},
{name: 'type', type: 'string'},
{name: 'parent', type: 'string'}
proxy: {
type: 'localstorage',
id : 'id_param'

ParamStore = new Ext.data.TreeStore({
model: 'param',
root: param,
id: 'paramStore',
proxy: {
type: 'localstorage',
id : 'paramStore',
reader: {
type: 'tree',
root: 'items'
autoLoad: false,
autosave: true

var param_list = new Ext.NestedList({
id: 'param_list',
fulscreen: true,
scroll: 'vertical',
displayField: 'text',
store: ParamStore,
grouped : false,
useToolbar : false,

(Everythings works well until I tap ParamStore.load() ) !

Have you got an idea What's I'm doing wrong ???

Thanks a lots