Click here to Skip to main content
15,896,455 members

Comments by Per_hn (Top 2 by date)

Per_hn 17-Sep-12 5:00am View    
Deleted
Hi
I think I know what you are talking about, because I am having the same problem.
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 there are too many results. 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 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 then 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 idea or solution on how this could work.
Per_hn 17-Sep-12 4:59am View    
Deleted
Hi
I think I know what you are talking about, because I am having the same problem.
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 there are too many results. 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 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 then 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 idea or solution on how this could work.