Results 1 to 2 of 2

Thread: Set a Combobox's store to a models association store?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Touch Premium Member
    Join Date
    Oct 2011
    Posts
    37
    Answers
    1
    Vote Rating
    1
      0  

    Default Unanswered: Set a Combobox's store to a models association store?

    Given a model with an association eg,

    "User has many Posts"
    Code:
    user.posts()//store of users posts
    In a grid panel i can do:
    Code:
    grid.reconfigure(user.posts())
    to bind the grid to display that data.

    How can i achieve the same effect with a combobox?

    I've looked for .reconfigure, .load, .setStore but cant actually find anything that allows for setting the box to a store after the view file has been loaded.

    Thanks

  2. #2
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,747
    Answers
    130
    Vote Rating
    129
      0  

    Default

    hmm, easiest way could be to just clear the data of the combo store and fill it with the new records.
    Best regards
    Tobias Uhlig

Posting Permissions

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