1. #1
    Touch Premium Member
    Join Date
    Oct 2011
    Posts
    37
    Answers
    1
    Vote Rating
    1
    rfox is on a distinguished road

      0  

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

    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,681
    Answers
    130
    Vote Rating
    112
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      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
    __________

    S-CIRCLES Social Network Engine

Thread Participants: 1