Login Register

FilteringSelect and large number of items problem

Hi,
I used 0.4.* ComboBox (type=select) with more than 4000 items.
and set "maxListLength" to "20".
All works fine.

Now, I update to "FilteringSelect" from v0.9x
The widget does not work, because the Select-List will show all the 4000 items.
If I set down the number of items e.g. to 500, all works fine.

I suppose, if I could set the the "maxListLength" also for "FilteringSelect" widget,
it works finde. I'm right?

How can I set this option for "FilteringSelect"

Thanks and greetings from
Germany, Mike

Re: FilteringSelect and large number of items problem

Hi Mike,

In the 0.9 final release, maxListLength is replaced by "pageSize." pageSize is not in the 0.9 beta version though, so you will either have to download trunk code or wait for the 0.9 final release.

try this

ComboBox demo with paging

Your link...

...doesn't work. It seems, the server is down.

Remi

pagin option to display limited number of records

Hi,
the pagin option is not the solution if you have many (about 5000) records.
It helps to display faster, but the jsonstore loads always all records.
That is the problem. Look here:
http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/porting-0-4-c...

paging does work

The ComboBox does implement paging. The FileItemReadStore just doesn't implement it as batch retrieves of data, because it can't. If you implement your own store, then you get passed the 'start' and 'count' query parameters that specify which row to start from and how many you want. I have implemented a store that runs off a database table and it only retrieves the requested page of data. It works fine for me with the ComboBox. The link I posted is running off my machine which I powered down overnight.

We are aware of the problem

@mikewo: We already know the problem (see also "Not for large recordsets" and "A question about stores and lazy loading") and it seems, some of the posted solutions are on the right way.

Remi