1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    25
    Answers
    2
    Vote Rating
    4
    caleywoods is on a distinguished road

      0  

    Default Unanswered: ComboBox & lastQuery property issue

    Unanswered: ComboBox & lastQuery property issue


    I have an ExtJS4 application that I've built for the accounting department internally. On one of the pages I have a few comboboxes that need filled in. I have set the two comboboxes up like this:

    https://gist.github.com/cfdd7508793586ed9003

    The top combobox works fine, it lets a user type in the box and auto-completes their entry, it does not currently actually filter the store, it's auto-complete only. If you click the dropdown arrow you can select from any of the six items in the list as well.

    The issue is with the second combobox. You can type and auto-complete in the box all day long but after typing and selecting the one you want if you try and click the dropdown arrow it will never drop down. If you doubleclick it will flash for a moment but then quickly disappear. To fix that if you remove the lastQuery: '' property on the configuration of the combobox and remove the beforequery listener that deletes the lastQuery the dropdown box will always display for you but you run into a new issue.

    After removing the listener and config option after you click the dropdown arrow and select an item, clicking the arrow again causes the list to display but with the "Loading.." always showing and you can't select any items. Once this happens you can not select anything until you refresh the page (or open the JS console and do a store.load() on that store or set lastQuery = null on the combobox).

    Why is this behaving differently than the other combobox? The stores are both identical behind the scenes in regard to the way they return their items. The only difference in the stores is that one loads the combobox with 6 items and the second loads the other combobox with 530 items.

    I've record a small screencast illustrating the issue. You can see the difficulty in the dropdown menu working, in certain situations it's impossible to activate.

    http://screencast.com/t/1KAWGzE5cmZ

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,731
    Answers
    3362
    Vote Rating
    754
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    So the issue is the Loading mask shows? You can get rid of that with queryMode : 'local'
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread

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