1. #1
    Sencha User
    Join Date
    Feb 2008
    Location
    @bryanzarzuela
    Posts
    55
    Vote Rating
    0
    bzarzuela is on a distinguished road

      0  

    Question What's the correct way of pre-populating a ComboBox before doing a Form.load?

    What's the correct way of pre-populating a ComboBox before doing a Form.load?


    I have a ComboBox called Country with a remote JsonStore inside a Form. My problem is when I call the Form's load() method, the ComboBox shows the id of the country instead of the name. I understand that this is because the store of the ComboBox is not yet populated.

    A call to form.getForm().findField('country_id').getStore().load() loads the data but doesn't seem to "bind" into the combobox. I can tell because if I click the trigger, it does another load() call.

    I tried searching for previous threads about this but can't find any (form, load, combobox, prepopulate, etc). I don't think this is a new problem so I'd like to ask if anyone can help point me to the right direction.

    Thanks.

  2. #2
    Sencha User
    Join Date
    Feb 2008
    Location
    @bryanzarzuela
    Posts
    55
    Vote Rating
    0
    bzarzuela is on a distinguished road

      0  

    Default


    Sorry! After I posted the thread, the answer came in one of the similar threads result!

  3. #3
    Sencha User
    Join Date
    Jan 2009
    Location
    Weinstadt
    Posts
    23
    Vote Rating
    1
    Graveworm is on a distinguished road

      0  

    Default


    Could you please post the solution or a link? Thx

    Edit: Maybe this helps: http://www.sencha.com/forum/showthre...274#post400274

Similar Threads

  1. Populating combo on form load
    By pajamabob in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 27 Dec 2009, 9:10 AM
  2. Combobox : populating multiple combo boxes FormPanel.load.success
    By MarkB in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 3 Sep 2008, 4:54 AM
  3. Replies: 1
    Last Post: 20 May 2008, 4:22 PM
  4. Pre-Populating Grid CheckboxSelectionModel
    By seancallan in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 21 Feb 2008, 6:56 AM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar