PDA

View Full Version : how to add a store to a combo?



parsbin
8 Mar 2011, 11:24 PM
Hi
i`v set a combo value after click on a button with:

Ext.getCmp('person_address').addStore('test address 1');

but i want add a value to store list of that combo box after click on the button.
how can do that?

thanks

JSassy
9 Mar 2011, 1:56 AM
You can use the following method

insert( Number index, Ext.data.Record[] records)

jay@moduscreate.com
9 Mar 2011, 3:58 AM
do you want to add a *store* or a *record*?

parsbin
9 Mar 2011, 4:16 AM
i want add a store example yahoo or google ...



xtype:'combo',triggerAction:'all' , name:'address_description', id:'address_description', value :'Microsoft',store:['Sun','Google','Apple','Microsoft','Yahoo']

parsbin
30 Mar 2011, 1:29 AM
not idea?