Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Ajax Autocomplete
I have a Textbox with an AutoCompleteExtender attached to it and it works fine. I have made the over layer that shows the autocomplete result with a fixed size and added an overflow:auto so it gives me a scrollbar when the list i too long for the over layer. When I try to use the scrollbar it fires the OnTextChanged on the textbox, because I changed focus away from the textbox and the text has been changed. So it actually does it job.
 
I use this to find member in database by writing there member ID and the autocompletes list shows the members with member id and name. The reason I need the OnTextChanged on the textbox is if the user decide to write the full member id and move on to the next textbox without using the autocomplete, it should still paint the information about this member just from the value in the textbox.
 
I have search a lot on the web I found different attempts on how to solve this, but none of them really works. The closest I got was using javascipt/Jquery to make the postback on .blur() and try not to make this postback if .mousedown () or .scoll(). But it didn’t work that well for me.
 
So hope some of you have a better approach or even a solution on how this could work.
 
Thanks in advanced.
Posted 17-Sep-12 20:05pm
Per_hn518

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sarvesh Kumar Gupta 228
1 CHill60 170
2 Peter Leow 165
3 Sergey Alexandrovich Kryukov 153
4 DamithSL 153


Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 18 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid