PDA

View Full Version : Remote Combo Box Paging



charlie17
4 Oct 2011, 10:21 AM
Seeing some strange behavior in trying to implement this. I am keying off the JS4 example (here (http://docs.sencha.com/ext-js/4-0/#!/example/form/forum-search.html)), which is exactly what I need: "live searching" of a remote data store via combo, and paging of results where > x are returned.

I am close. I have the remote searching/loading working, and the first page of results is right on. But as soon as I page over to page 2 (or whatever), the FULL dataset is loaded. It does not maintain the search filter.

Here is the really strange part. When I load the JS4 example from this page, it all works as it should. (To test it, try searching for the word "json" - it should return 26 pages of results, and you should be able to page through them):

http://docs.sencha.com/ext-js/4-0/#!/example/form/forum-search.html

(http://docs.sencha.com/ext-js/4-0/#!/example/form/forum-search.html)But when I load the same example via the following page, it does NOT work, and exhibits the same faulty behavior that I am seeing in my project:

http://dev.sencha.com/deploy/ext-4.0.2a/examples/form/forum-search.html

(http://dev.sencha.com/deploy/ext-4.0.2a/examples/form/forum-search.html)Also, when I load the JS4 example on my localhost, completely as-is with no changes, it also exhibits the faulty behavior.

What gives?

charlie17
15 Oct 2011, 10:31 AM
Looks like this has been confirmed as a bug, and it is on track to be addressed in the 4.1 release:

http://www.sencha.com/forum/showthread.php?130137-Combo-with-remote-strore-and-pagesize-do-not-send-query-param-on-page-change

http://www.sencha.com/forum/showthread.php?134592-EXTJSIV-2470-4.0.1-ComboBox-not-issuing-queryParam-on-paging-requests/page2 (http://www.sencha.com/forum/showthread.php?130137-Combo-with-remote-strore-and-pagesize-do-not-send-query-param-on-page-change)