Results 1 to 5 of 5

Thread: how to add a store to a combo?

  1. #1
    Sencha User parsbin's Avatar
    Join Date
    Feb 2011
    Location
    Iran, Alborz, Karaj
    Posts
    123

    Question how to add a store to a combo?

    Hi
    i`v set a combo value after click on a button with:
    PHP Code:
    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

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Posts
    25

    Default

    You can use the following method
    Code:
    insert( Number index, Ext.data.Record[] records)

  3. #3
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    do you want to add a *store* or a *record*?

  4. #4
    Sencha User parsbin's Avatar
    Join Date
    Feb 2011
    Location
    Iran, Alborz, Karaj
    Posts
    123

    Default

    i want add a store example yahoo or google ...
    PHP Code:

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

  5. #5
    Sencha User parsbin's Avatar
    Join Date
    Feb 2011
    Location
    Iran, Alborz, Karaj
    Posts
    123

    Default

    not idea?

Similar Threads

  1. combo : the hiddenvalue does not get data from the store on combo load
    By naspar in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 31 May 2010, 2:39 AM
  2. [RESOLVED] Combo store loads when trigger pressed -even when store is loaded!
    By dlgoodchild in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 13 Aug 2009, 1:46 PM
  3. Replies: 2
    Last Post: 29 Jul 2009, 9:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •