I’m using the jquery autocomplete plugin and I am comming up to a few problems:
I have a lot of data and when I type data a long suggestion list is shown and a scrollbar is needed:
$("#txtName").autocomplete(data,
{ matchContains: true,
minChars: 0,
max: 3000,
scroll: true,
//scrollHeight: 180,
width: 200
});
but, the scrollbar does’t work properly in IE (it’s a known issue, I searched alot but have’nt found a relevant solution).
so I decided to block the suggestion list popup and get the suggestion list results into an array or somthing similar and show them in my control.
my problem is – How do I get that list?
Thanks in advance!
I found the answer (part of it, I still need to work on it).
I’ll first post the code and then explain it:
Html:
The added part (
_renderItem) adds one item each time, so you can do whatever you want to do with an item. I decided to add it to a list.The other thing that’s not done is erasing the list each time. I still need to figure out how to do that.