Sunday, March 11, 2012

Apply css on autocomplete dropdown text

Have a look at thesample page.

You can set styles to the following properties:

CompletionListCssClass - Css Class that will be used to style the completion list flyout.CompletionListItemCssClass - Css Class that will be used to style an item in the AutoComplete list flyout.CompletionListHighlightedItemCssClass - Css Class that will be used to style a highlighted item in the AutoComplete list flyout.

Hi,

Thanks for the reply.

I am using

 <cc1:AutoCompleteExtender runat="server" ID="autoComplete1" TargetControlID="txt_Search" ServicePath="../../AutoComplete.asmx" ServiceMethod="GetCompletionList" MinimumPrefixLength="2" CompletionInterval="1000" EnableCaching="true" CompletionSetCount="12" />

and the autocomplete is in usercontrol.

When I try to add

1<cc1:AutoCompleteExtender runat="server"2 ID="autoComplete1"3 TargetControlID="txt_Search"4 ServicePath="../../AutoComplete.asmx"5 ServiceMethod="GetCompletionList"6 MinimumPrefixLength="2"7 CompletionInterval="1000"8 EnableCaching="true"9 CompletionSetCount="12"1011 CompletionListCssClass="autocomplete_completionListElement"12 CompletionListItemCssClass="autocomplete_listItem"13 CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"1415 />

Says does not have public propertyCompletionListCssClass

Any idea?

Thanks


Seehttp://forums.asp.net/p/1147465/1862424.aspx and try downloading thelatest version of the AJAX Control Toolkit.

-Damien

No comments:

Post a Comment