Results 1 to 3 of 3

Thread: After ComboBox manual selection, the selections are cleared. Only in MVC

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    2

    Default After ComboBox manual selection, the selections are cleared. Only in MVC

    I have a ComboBox hooked up to a store that manages a model called Field. When the page loads and the' afterrender'event is fired I then pre-select default choices from the ComboBox. Once the user can start using the application they click the ComboBox down-arrow-button and they then see all of the choices that are already selected highlighted. Now this works properly when I do NOT use the MVC architecture as seen here in this simplified jsfiddle :
    http://jsfiddle.net/michaelcdillon/grCLU/11/

    When I use the MVC architecture method with generally the same code the down-arrow-button clears out the pre-selected values in this jsfiddle:
    http://jsfiddle.net/michaelcdillon/grCLU/10/

    Why would this work in the direct methodology but not in the MVC way?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Are you selecting the items via setting the value?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    2

    Default

    Yes I am. I just found out though that I can replicate the issue in both versions by having the queryMode config option of the combobox set to 'remote'. So there isn't a discrepancy, however I would really like to figure out how to make the values persist.

Tags for this Thread

Posting Permissions

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