1. #1
    Sencha User only_do@126.com's Avatar
    Join Date
    Jul 2008
    Posts
    14
    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
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    78
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Why create a JSON store for one item?

Thread Participants: 1