-
23 Sep 2009 6:34 PM #1
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:
and this is the jsonstore defineCode:{"data":[{"text":"refresh","iconCls":"icon-refresh","id":"1"}],"size":1}
can i load these items after a panel initComponent?Code:this.tbstore=new Ext.data.JsonStore({ autoDestroy: true, autoLoad:true, url: 'user/test.do', root: 'data', idProperty: 'id', fields: [ 'id','text', 'iconCls'] });MSN:only_do@hotmail.com
QQ:9768846
-
5 Oct 2009 6:14 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 33
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.


Reply With Quote