1. #1
    Ext User only_do@126.com's Avatar
    Join Date
    Jul 2008
    Posts
    13
    Vote Rating
    0
    only_do@126.com is on a distinguished road

      0  

    Default how to load a toolbar item from a json store

    how to load a toolbar item from a json store


    how to load toolbar items from a json store?
    this is my json return:
    Code:
    {"data":[{"text":"refresh","iconCls":"icon-refresh","id":"1"}],"size":1}
    and this is the jsonstore define
    Code:
    this.tbstore=new Ext.data.JsonStore({      
          autoDestroy: true,
          autoLoad:true,
          url: 'user/test.do',
          root: 'data',
          idProperty: 'id',
          fields: [ 'id','text', 'iconCls']
      });
    can i load these items after a panel initComponent?
    MSN:only_do@hotmail.com
    QQ:9768846

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,170
    Vote Rating
    33
    jay@moduscreate.com is just really nice jay@moduscreate.com is just really nice jay@moduscreate.com is just really nice jay@moduscreate.com is just really nice

      0  

    Default


    Why create a JSON store for one item?

    Jay Garcia @ModusJesus || Modus Create co-founder
    Ext JS in Action author
    Sencha Touch in Action author

    Get in touch for Ext JS & Sencha Touch Touch Training

    We are also working on Video-based Sencha Touch training: Check it out here.