Monday, March 26, 2012

Ajax AutocompleteExtender

Hi All

I have a query with reference AutoCompleteExtender.

CompletionListCSSClass using Stylesheet named autocomplete_completionListElement which set height of autocomple box 200px. when server return few records, the height does not automatically adjusted.

Is it possible to adjust height automatically?

Kind Regards

Bhavesh

Hi Brvaland,

brvaland:

Is it possible to adjust height automatically?

Do you mean manually adjust the height property?(The Control will automatically control its height property)

If yes , please add this code to your page.

<script type="text/javascript" language="javascript">
function pageLoad(){
$find("myACEBID").add_shown(reAdjustHeight);
}
function reAdjustHeight(){
$get($find("myACEBID")._completionListElementID).style.height = "120px"
}
</script>

Best regards,

Jonathan

No comments:

Post a Comment