PDA

View Full Version : IndexBar init problem with .json-fed list



Jem
9 Sep 2011, 1:30 AM
Hi,

I'm making a very simple "contact list" with a right-docked indexBar. The problem is that my indexBar is not responsive until I've touched/dragged the list myself.

The data is loaded from a static .json file:

this.store = new Ext.data.Store({
autoLoad : true,
model : 'Company',
sorters : ['title'],


proxy : {
type : 'ajax',
url : './data/companies.json',
reader : {type : 'json'}
}
});

Very simple approach. The rest isn't any tougher, simply creating a new Ext.List on which I set the following indexBar:
var myIndexBar = new Ext.IndexBar({dock : 'right'});

The index bad is properly display, but until I've interacted with the list itself, the index bad is not responsive.
No idea why this behavior occurs... Any clue?

Thanks!
J.