Hi
Ass we see in the example of itemselector, we must create a datastore with var and then bind it to the itemselector
Code:
var ds = Ext.create('Ext.data.ArrayStore', {        fields: ['value','text'],        proxy: {            type: 'ajax',            url: 'Numbers',            reader: 'array'        },        autoLoad: true,        sortInfo: {            field: 'value',            direction: 'ASC'        }    });    /*     * Ext.ux.form.ItemSelector Example Code     */    var isForm = Ext.widget('form', {        title: 'ItemSelector Test',        width: 700,        bodyPadding: 10,        height: 300,        renderTo: 'itemselector',        layout: 'fit',        items:[{            xtype: 'itemselector',            name: 'itemselector',            id: 'itemselector-field',            anchor: '100%',            fieldLabel: 'ItemSelector',            imagePath: '../ux/images/',            store: ds,            displayField: 'text',            valueField: 'value',            value: ['3', '4', '6'],            allowBlank: false,            msgTarget: 'side'        }],        dockedItems: createDockedItems('itemselector-field')    });
But instead of doing like that, I would like to create the store dynamically in the itemselector
Code:
var isForm = Ext.widget('form', {
        title: 'ItemSelector Test',
        width: 700,
        bodyPadding: 10,
        height: 300,
        renderTo: 'itemselector',
        layout: 'fit',
        items:[{
            xtype: 'itemselector',
            name: 'itemselector',
            id: 'itemselector-field',
            anchor: '100%',
            fieldLabel: 'ItemSelector',
            imagePath: '../ux/images/',
            store: Ext.create('Ext.data.ArrayStore', {
        fields: ['value','text'],
        proxy: {
            type: 'ajax',
            url: 'Numbers',
            reader: 'array'
        },
        autoLoad: true,
        sortInfo: {
            field: 'value',
            direction: 'ASC'
        }
    }),
            displayField: 'text',
            valueField: 'value',
            value: ['3', '4', '6'],
            allowBlank: false,
            msgTarget: 'side'
        }],
        dockedItems: createDockedItems('itemselector-field')
    });
but data deosn't show
Do you know why?

Thank you