IE9 ajax autocomplete extender
Brought to you by:
jvmenen
Event doesn't fire in ajax autocompleteextender.
Decision:
textField.Clear();
textField.TypeText(value);
m_browser.Eval("document.getElementById('" + textField.Id + "').AutoCompleteBehavior._timer._startTimer();"); //start event
Thread.Sleep(3000);
//WaitForAsyncPostBackToComplete (http://stufftoremember.posterous.com/automated-acceptance-testing-with-watin) doesn't work
ListItem listItem = parentDiv.ListItems[0];
if (listItem.Exists)
{
listItem.MouseDown();
m_browser.Eval(" var obj=document.getElementById('" + textField.Id + "').AutoCompleteBehavior; obj._setText(obj._completionListElement.childNodes[0]);"); // finds first element from list and writes in textbox
}
I hope that is temporary decision and problem will be resolve.