Results 1 to 2 of 2

Thread: ComboBox autocomplete not working properly with pagination

  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2011
    Brasov, RO
    Vote Rating

    Default ComboBox autocomplete not working properly with pagination

    Hello everybody!

    I found some undesired behavior for the combobox control. I'm not quite sure whether it's a bug. Maybe somebody else went through the same issue I do. Now, let me describe a little the use case that leads to the problem:

    -- I have a paginated combo with 12 items per page;
    -- the combo has autocomplete enabled (forceSelection = true, editable = true);
    -- I expand the bound list without typing any text;
    -- I go to a page, say 9;
    -- I start to type characters in the combo, say 'sencha';

    Looking to the GET request parameters, I see the following set:

    -- query : 'sencha',
    -- limit : 12,
    -- page : 9,
    -- start : 96

    And that's not quite what I expected. I expect that, when I start typing, the pagination resets. I'd presume I want to make a new search, completely unrelated to the previous one and to the page I've navigated to. At the beginning, I don't want to see the 9th page with results containing 'sencha'. What if only few items (2 or 3) in my list contains 'sencha'?

    In the end, is this a bug?
    If not, is there any workaround to obtain the behaviour I desire?

    Thanks a lot.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    As a user, I would expect paging to be cleared out as you are getting a new data set. If I can get a small test case I can open a bug report.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    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.

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