I was wondering if there is a way of pre-loading a Jquery list box with items (similar to .items property in design mode) through code rather than using (.additem) as it is very slow ( i am loading about 1000 items at once), any ideas?
My first question is: 1000 items? It can’t be easy for the user to scroll through that many to find an item.
Second question: Which control do you actually mean?
jqWidgets Listbox or jQuery Mobile List?
and an idea: the reason it takes a long time is that it needs to refresh the control after each item is added. Is it faster if you hide the control while doing this?
The reason i am adding 1000 items is beacuse i’ve created a kind of a dictionary and i use the filter option to go through the list (which is very effiecient by the way).
You will need to dive into HTML to do this. If you have a jQM List control named List1, type List1.innerHTML into the Chrome Console. You’ll get something like this: