1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    6
    Vote Rating
    0
    rojalin@ceptes.com is on a distinguished road

      0  

    Default Displaying a list in panel

    Displaying a list in panel


    Hi,
    I am very much new to the sencha designer 2 .
    I am trying to create a simple application using list and store.

    My store is
    Code:
    Ext.define('MyApp.store.demo', {
        extend: 'Ext.data.Store',
        alias: 'store.demo',
    
    
        config: {
            autoLoad: true,
            clearOnPageLoad: false,
            data: [
                {
                    name: 'Cowper'
                },
                {
                    name: 'Everett'
                },
                {
                    name: 'University'
                },
                {
                    name: 'Forest'
                }
            ],
            storeId: 'demo',
            fields: [
                {
                    name: 'name'
                }
            ]
        }
    });
    I just want to display the store value inside list
    Code:
    Ext.define('MyApp.store.demo', {
        extend: 'Ext.data.Store',
        alias: 'store.demo',
    
    
        config: {
            autoLoad: true,
            clearOnPageLoad: false,
            data: [
                {
                    name: 'Cowper'
                },
                {
                    name: 'Everett'
                },
                {
                    name: 'University'
                },
                {
                    name: 'Forest'
                }
            ],
            storeId: 'demo',
            fields: [
                {
                    name: 'name'
                }
            ]
        }
    });
    In my lunch function I have something like
    Code:
    var me = this;
    Ext.Loader.setConfig({enabled:true});
    Ext.Viewport.setMasked({ message: 'Loading...' });
    
    
    var store = Ext.data.StoreManager.lookup('demo');
                                            
    console.log('store.................'+store.getAt(0).get("name"));
    
    
     me.getDataList().setStore(store);
    console.log('datalist ref..............'+me.getDataList());
    
    
    Ext.Viewport.setMasked(false);
    Here I am able to get the store correctly,but it is not setting the value to the list properly,It's n't displaying on the view page.

    Thanks ....
    Last edited by aconran; 9 Apr 2012 at 10:15 AM. Reason: add code tags

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar