AjaxControlToolkit AutoCompleteExtender Bug in an UpdatePanel

While working with the AutoCompleteExtender in the AjaxControlToolkit I ran across a bug where if the control happens to reside in an UpdatePanel, the AutoComplete trigger wouldn't get called after a PostBack is triggered in the UpdatePanel.

I found the following solution in the www.asp.net forums. All credit goes to psyafter who came up with the solution, I am just re-posting it here to share it with anyone else who runs into this bug.

Open the source code of the AjaxControlToolkit in Visual Studio

Open the AutoComplete\AutoCompleteBehavior.js file

Find the following function:
dispose: function() {

Add this text:
if (this._popupBehavior) {
this._popupBehavior.dispose();
this._popupBehavior = null;
}

Right before this line in the file:
AjaxControlToolkit.AutoCompleteBehavior.callBaseMethod(this, 'dispose');

Recompile and replace your toolkit dll

Aaron
http://www.churchofficeonline.com

 

 

Published Tuesday, March 11, 2008 1:14 AM by schnieds

Comments

# re: AjaxControlToolkit AutoCompleteExtender Bug in an UpdatePanel

Thursday, April 24, 2008 11:50 PM by symbo42

Thanks heaps, been looking for a solution all morning :)

# re: AjaxControlToolkit AutoCompleteExtender Bug in an UpdatePanel

Saturday, January 10, 2009 10:01 AM by Arun

Even though i do the mentioned changes and recompile

i am getting the same error... Any help appreciated

# re: AjaxControlToolkit AutoCompleteExtender Bug in an UpdatePanel

Friday, January 23, 2009 4:47 AM by Nemesis116

Thanks

# AjaxToolKit AutoCompleteExtender Postback Problem

Wednesday, October 21, 2009 9:54 AM by ASP.NET AJAX Toolkit Forum Posts

I am try to get rid of this notorious bug found in autocompleteextender which does propose the list of

# AutocompleteExtender Problem in asp.net webparts

Thursday, October 22, 2009 7:03 AM by ASP.NET AJAX Toolkit Forum Posts

I recently developed a asp.net webparts application on which in one webpart I used AutocompleteExtender

Leave a Comment

(required) 
(required) 
(optional)
(required)