New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

AutoCompleteBoxEntry Client-Side Object Model

This article explains about the properties and methods of the AutoCompleteBoxEntry client-side object.

NameParametersReturn TypeDescription
get_index()nonenumberReturns the index of the specified entry.
get_text()nonestringReturns the text of the specified entry.
get_value()nonestringReturns the value of the specified entry.
get_token()noneDOM objectReturns a reference to the HTML element representing the specified entry. If the input type of RadAutoCompleteBox is set to "Text", the property will return nothing. See Example 1.
get_parent()noneTelerik.Web.UI.RadAutoCompleteBoxReturns the parent object of the specified entry.

Example 1: Create new entry, add it to the RadAutoCompleteBox entries collection and set the color of the new entry token DOM element to 'red':

JavaScript
	
	function changeTokenElementColor() {
		var autoComplete = $find("<%= RadAutoCompleteBox1.ClientID %>");
		var newEntry = autoComplete.createEntry('Text', 'Value');
		var entries = autoComplete.get_entries();
		entries.add(newEntry);
		var tokenDomElement = newEntry.get_token();
		tokenDomElement.style.color = "red";
    }
	

See Also

In this article
See Also
Not finding the help you need?
Contact Support