Hi, I want to set text box properties to dynamically created texbox. But don't know how to apply the animation to the extender control. I want to perform :
<%-- Make the completion list transparent and then show it --%>
<%--Cache the original size of the completion list the first time
the animation is played and then set it to zero --%>
<ScriptAction Script="
// Cache the size and setup the initial size
var behavior = $find('AutoCompleteEx');
if (!behavior._height) {
var target = behavior.get_completionList();
behavior._height = target.offsetHeight - 2;
target.style.height = '0px';
}" />
<%-- Expand from 0px to the appropriate size while fading in --%>
<Parallel Duration=".4">
<FadeIn />
<Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx')._height" />
</Parallel>
</Sequence>
</OnShow>
<OnHide>
<%-- Collapse down to 0px and fade out --%>
<Parallel Duration=".4">
<FadeOut />
<Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx')._height" EndValue="0" />
</Parallel>
</OnHide>
</Animations>
At se rver side . bu t not getting any way.please guide. Still I have code :
autoComplete = new AutoCompleteExtender(); autoComplete.ID = "AutoComplete"; autoComplete.TargetControlID = "SelectEmployeeTextBox"; autoComplete.ServicePath = "~/AutoComplete.asmx"; autoComplete.ServiceMethod = "GetCompletionList"; autoComplete.MinimumPrefixLength = 2; autoComplete.CompletionInterval = 1000; autoComplete.EnableCaching = true; autoComplete.CompletionSetCount = 20; autoComplete.CompletionListCssClass = "autocomplete_completionListElement"; autoComplete.CompletionListItemCssClass = "autocomplete_listItem"; autoComplete.CompletionListHighlightedItemCssClass = "autocomplete_highlightedListItem"; autoComplete.DelimiterCharacters = ";, :"; autoComplete.ShowOnlyCurrentWordInCompletionListItem = true;