Scroll issue on AutoCompleteExtender with AutoPostBack TextBox

Hi experts,
Clicking the AutoCompleteExtender scrollbar causes postback when attached to a TextBox where AutoPostBack="true".

Steps to reproduce:
1. Add a TextBox to your ASPX page with AutoPostBack="true".
2. Add an AutoCompleteExtender and specify the TextBox above as the target control.
3. Create a new web service method and specify the appropriate ServicePath and ServiceMethod on your AutoCompleteExtender.
4. Specify all the appropriate attributes on your AutoCompleteExtender as needed so that typing some text displays a drop down.
5. From the web service method, make sure you will be returning a large number of items, so that the AutoCompleteExtender's drop down list displays a scrollbar.
6. Click or tab into the TextBox and type some text so that the drop down (with scroll bar) is displayed.
7. For good measure, first try simply pressing the arrow down key until the drop down starts scrolling on its own. This works fine, no problem.
8. Now, instead of arrowing down, click the scrollbar and begin scrolling.
9. All of a sudden, it appears that the focus is lost from the TextBox control, which naturally causes the AutoPostBack behavior to kick in. This causes the drop down to disappear and you are never able to scroll in the manner in which you intended.

It seems like what we need is a way of temporarily disabling the AutoPostBack behavior whenever the drop down is displayed or perhaps just when a person tries to scroll. Maybe clicking down on the scrollbar could set some sort of flag that would disable the AutoPostback, and then releasing the mouse would re-enable it. I don't know how feasible this is, but it sure would be nice if someone had an idea.

Thanks!
LVL 1
Jeyakumar_mcpAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeyakumar_mcpAuthor Commented:
Hi experts! any suggestion?
0
masterpassCommented:
I bet you have written the Text_Changed event for the text box .... By definition a text_changed event will be called when you move out of the text box... When you are clicking scroll bar of AutoCompleteExtender you are moving away the focus of the text box firing the event.

The workaround would be to implement this in pure ajax concept ... with out any postback to the server

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeyakumar_mcpAuthor Commented:
good
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.