New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Telerik RadAutoCompleteBox for ASP.NET AJAX is a powerful drop-down list control which gives the ability to select multiple entries, displaying them as a sequence of strings separated by a delimiter, or fancy styled tokens depending on your preferences.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[RequiredScript(typeof(ChangeLog), 2)]
[RequiredScript(typeof(jQueryPlugins), 1)]
[RequiredScript(typeof(DropDown), 3)]
[RequiredScript(typeof(MaterialRipple))]
[ClientScriptResource("Telerik.Web.UI.RadAutoCompleteBox", "Telerik.Web.UI.AutoCompleteBox.RadAutoCompleteBoxScripts.js", LoadOrder = 4)]
[ValidationProperty("Text")]
[ControlValueProperty("Text")]
[TelerikToolboxCategory("Data Editing")]
[ToolboxBitmap(typeof(RadAutoCompleteBox), "Toolbox.Icons.AutoCompleteBox.png")]
[EmbeddedSkin("AutoCompleteBox", typeof(RadAutoCompleteBox))]
[EmbeddedSkin("AutoCompleteBox", "Default", typeof(RadAutoCompleteBox))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RadAutoCompleteBox))]
[RequiredCss("Telerik.Web.UI.Skins.Common.MaterialRipple.css", RenderMode.Lightweight, typeof(RadButton))]
public class RadAutoCompleteBox : RadDataBoundControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, IFeatureGroup, INamingContainer, IPostBackEventHandler, ICallbackEventHandler, IFlatBoundContainer

Inheritance: objectControlWebControlBaseDataBoundControlDataBoundControlRadDataBoundControlRadAutoCompleteBox...

Implements: IAttributeAccessorICallbackEventHandlerIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorIFeatureGroupIFlatBoundContainerINamingContainerIParserAccessorIPostBackDataHandlerIPostBackEventHandlerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members DataBoundControl.OnCreatingModelDataSource(CreatingModelDataSourceEventArgs)DataBoundControl.GetData()DataBoundControl.GetDataSource()DataBoundControl.MarkAsDataBound()DataBoundControl.OnDataPropertyChanged()DataBoundControl.OnDataSourceViewChanged(object, EventArgs)DataBoundControl.OnLoad(EventArgs)DataBoundControl.OnPagePreLoad(object, EventArgs)DataBoundControl.PerformSelect()DataBoundControl.ValidateDataSource(object)DataBoundControl.DataMemberDataBoundControl.IsUsingModelBindersDataBoundControl.ItemTypeDataBoundControl.SelectMethodDataBoundControl.DataSourceIDDataBoundControl.DataSourceObjectDataBoundControl.CreatingModelDataSourceDataBoundControl.CallingDataMethodsBaseDataBoundControl.ConfirmInitState()BaseDataBoundControl.DataBind()BaseDataBoundControl.EnsureDataBound()BaseDataBoundControl.OnDataBound(EventArgs)BaseDataBoundControl.OnInit(EventArgs)BaseDataBoundControl.DataSourceBaseDataBoundControl.InitializedBaseDataBoundControl.IsBoundUsingDataSourceIDBaseDataBoundControl.IsDataBindingAutomaticBaseDataBoundControl.SupportsDisabledAttributeBaseDataBoundControl.RequiresDataBindingBaseDataBoundControl.DataBoundWebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.IsEnabledWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.ToolTipWebControl.WidthControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadAutoCompleteBox()

Properties

Gets or sets a value indicating whether the user will be able to add a custom text not present within the raw data in order to create a custom entry.

C#
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("allowCustomEntry")]
public bool AllowCustomEntry { get; set; }

Gets the object that controls the Wai-Aria settings applied on the control's input element.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public WaiAriaSettings AriaSettings { get; }

Gets or sets a value indicating whether a postback to the server automatically occurs when the user changes the RadAutoCompleteBox selection and/or text.

C#
[Bindable(false)]
public bool AutoPostBack { get; set; }
C#
protected AutoCompleteBoxEntryCollection Children { get; }

Gets or sets the template for the items that appear in the dropdown.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
[Browsable(false)]
public string ClientDropDownItemTemplate { get; set; }

Gets the settings for the animation played when the dropdown closes.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public AnimationSettings CollapseAnimation { get; }
Property Value:

An AnimationSettings that represents the collapse animation.

Use the CollapseAnimation property to customize the expand animation of RadAutoCompleteBox. You can specify the Type and Duration. To disable collapse animation effects you should set the Type to AnimationType.None.
To customize the expand animation you can use the ExpandAnimation property.

Example:
cs-api-definition
void Page_Load(object sender, EventArgs e)
{
RadAutoCompleteBox1.CollapseAnimation.Type = AnimationType.Linear;
RadAutoCompleteBox1.CollapseAnimation.Duration = 300;
}

The client-side id of the inner input element used for intergation with RadLabel

C#
public string ControlId { get; }

Gets or sets the selected culture. Localization strings will be loaded based on this value.

C#
public CultureInfo Culture { get; set; }
Property Value:

The culture.

Gets or sets the DataTextField.

C#
public virtual string DataTextField { get; set; }
Property Value:

The DataTextField.

Implements: IFlatBoundContainer.DataTextField

Gets or sets a value indicating how the items text should be formatted.

C#
public virtual string DataTextFormatString { get; set; }

Gets or sets the DataValueField.

C#
public virtual string DataValueField { get; set; }
Property Value:

The DataValueField.

Implements: IFlatBoundContainer.DataValueField

Gets or sets a value indicating what delimiter should be used when the control displays the selected items as text (InputType = Text)

C#
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("delimiter")]
public string Delimiter { get; set; }

Gets or sets the height of the dropdown in pixels.

C#
[ClientControlProperty]
public Unit DropDownHeight { get; set; }
C#
protected List<DropDownItem> DropDownItems { get; set; }

Gets or sets the template for the items that appear in the dropdown.

C#
[TemplateContainer(typeof(DropDownItem))]
[PersistenceMode(PersistenceMode.InnerProperty)]
[Browsable(false)]
[Bindable(false)]
public virtual ITemplate DropDownItemTemplate { get; set; }
Property Value:

An object implementing the ITemplate interface. The default value is a null reference (Nothing in Visual Basic), which indicates that this property is not set.

Gets or sets a value indicating how the RadAutoCompleteBoxDropDown should be positioned.

C#
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("dropDownPosition")]
public RadAutoCompleteDropDownPosition DropDownPosition { get; set; }

Gets or sets the width of the dropdown in pixels.

C#
[ClientControlProperty]
public Unit DropDownWidth { get; set; }

Gets or sets a value indicating what message will be displayed then the control is empty (has no entries selected).

C#
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("emptyMessage")]
public string EmptyMessage { get; set; }

When set to true enables support for WAI-ARIA.

C#
[ClientControlProperty]
[ClientPropertyName("enableAriaSupport")]
public bool EnableAriaSupport { get; set; }

Gets or sets a value indicating whether the filtering is done on the client, or each typed letter should trigger a request.

C#
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("enableClientFiltering")]
public bool EnableClientFiltering { get; set; }

Determines whether the Direction Detection is enabled or not.

C#
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("_enableDirectionDetection")]
public bool EnableDirectionDetection { get; set; }

Determines whether the Screen Boundaries Detection is enabled or not.

C#
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("_enableScreenBoundaryDetection")]
public bool EnableScreenBoundaryDetection { get; set; }

Gets the RadAutoCompleteBox entries collection.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public AutoCompleteBoxEntryCollection Entries { get; }

Gets the settings for the animation played when the dropdown opens.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public AnimationSettings ExpandAnimation { get; }
Property Value:

An AnimationSettings that represents the expand animation.

Use the ExpandAnimation property to customize the expand animation of RadAutoCompleteBox. You can specify the Type and Duration. To disable expand animation effects you should set the Type to AnimationType.None.
To customize the collapse animation you can use the CollapseAnimation property.

Example:
cs-api-definition
void Page_Load(object sender, EventArgs e)
{
RadAutoCompleteBox1.ExpandAnimation.Type = AnimationType.Linear;
RadAutoCompleteBox1.ExpandAnimation.Duration = 300;
}

Gets or sets a value indicating whether the RadAutoCompleteBox should apply “Contains” or “StartsWith” filter logic.

C#
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("filter")]
public RadAutoCompleteFilter Filter { get; set; }

Gets or sets the height of the Web server control.

C#
public override Unit Height { get; }
Property Value:

A Unit that represents the height of the control. The default is Empty.

Exceptions: ArgumentException

The height was set to a negative value.

Overrides: RadDataBoundControl.Height

Gets or sets whether the first match will be highlighted.

C#
public virtual bool HighlightFirstMatch { get; set; }

Gets or sets a value indicating how the RadAutoCompleteBox items should be displayed - as tokens or as text.

C#
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("inputType")]
public RadAutoCompleteInputType InputType { get; set; }

Gets or sets a value that indicates whether the filter logic is case-sensitive or not.

C#
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("isCaseSensitive")]
public bool IsCaseSensitive { get; set; }

Gets or sets the label of the control.

C#
public string Label { get; set; }
Property Value:

The label of the control.

Gets or sets the CSS class of the label.

C#
public string LabelCssClass { get; set; }
Property Value:

The label CSS class.

Gets or sets the width of the control's label

C#
public Unit LabelWidth { get; set; }

Gets the localization.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
[TypeConverter(typeof(ExpandableObjectConverter))]
public AutoCompleteBoxLocalization Localization { get; }
Property Value:

The localization.

Gets or sets a value indicating where RadAutoCompleteBox will look for its .resx localization files.

C#
public string LocalizationPath { get; set; }
Property Value:

The localization path.

Defines the maximum number of results shown in the autocomplete dropdown.

C#
[ClientControlProperty]
[ClientPropertyName("maxResultCount")]
public virtual int MaxResultCount { get; set; }
Property Value:

The maximum number of results shown in the autocomplete dropdown.

Defines the minimum number of characters that must be typed before the autocomplete is triggered.

C#
[ClientControlProperty]
[ClientPropertyName("minFilterLength")]
public virtual int MinFilterLength { get; set; }
Property Value:

The minimum number of characters that must be typed before the autocomplete is triggered.

Gets or sets the name of the JavaScript function called when the dropdown is closed

C#
[ClientControlEvent]
[ClientPropertyName("dropDownClosed")]
public string OnClientDropDownClosed { get; set; }

Gets or sets the name of the JavaScript function called when the dropdown is about to be closed

C#
[ClientControlEvent]
[ClientPropertyName("dropDownClosing")]
public string OnClientDropDownClosing { get; set; }
Example:
C#
function onClientDropDownClosing(sender, args)
{
args.set_cancel(true);
}

Gets or sets the name of the JavaScript function called when an DropDownItem is created during Web Service Load on Demand.

C#
[ClientControlEvent]
[ClientPropertyName("dropDownItemDataBound")]
public string OnClientDropDownItemDataBound { get; set; }

Gets or sets the name of the JavaScript function called when the dropdown is opened

C#
[ClientControlEvent]
[ClientPropertyName("dropDownOpened")]
public string OnClientDropDownOpened { get; set; }

Gets or sets the name of the JavaScript function called when the dropdown is about to be opened

C#
[ClientControlEvent]
[ClientPropertyName("dropDownOpening")]
public string OnClientDropDownOpening { get; set; }
Example:
C#
function onClientDropDownOpening(sender, args)
{
args.set_cancel(true);
}

Gets or sets the name of the JavaScript function called when an entry was added

C#
[ClientControlEvent]
[ClientPropertyName("entryAdded")]
public string OnClientEntryAdded { get; set; }

Gets or sets the name of the JavaScript function called when an entry is about to be added

C#
[ClientControlEvent]
[ClientPropertyName("entryAdding")]
public string OnClientEntryAdding { get; set; }
Example:
C#
unction onClientEntryAdding(sender, args)
{
args.set_cancel(true);
}

Gets or sets the name of the JavaScript function called when an entry was removed

C#
[ClientControlEvent]
[ClientPropertyName("entryRemoved")]
public string OnClientEntryRemoved { get; set; }

Gets or sets the name of the JavaScript function called when an entry is about to be removed

C#
[ClientControlEvent]
[ClientPropertyName("entryRemoving")]
public string OnClientEntryRemoving { get; set; }
Example:
C#
unction onClientEntryRemoving(sender, args)
{
args.set_cancel(true);
}

Gets or sets the name of the JavaScript function which handles the load client-side event.

C#
[ClientControlEvent]
[ClientPropertyName("load")]
public string OnClientLoad { get; set; }

The load event occurs when RadAutoCompleteBox is initialized.

Gets or sets a value indicating the client-side event handler that is called when the RadAutoCompleteBox items were just populated (for example from web service).

C#
[Bindable(false)]
[ClientControlEvent]
[ClientPropertyName("requested")]
public string OnClientRequested { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

If specified, the OnClientRequested client-side event handler is called when the RadAutoCompleteBox items were just populated. Two parameters are passed to the handler:

  • sender, the menu client object;
  • eventArgs, null for this event.

This event cannot be cancelled.

Gets or sets a value indicating the client-side event handler that is called when the operation for populating the RadAutoCompleteBox has failed.

C#
[Bindable(false)]
[ClientControlEvent]
[ClientPropertyName("requestFailed")]
public string OnClientRequestFailed { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

If specified, the OnClientRequestFailed client-side event handler is called when the operation for populating the RadAutoCompleteBox has failed. Two parameters are passed to the handler:

  • sender, the menu client object;
  • eventArgs with one property:
    • set_cancel(), set to true to suppress the default action (alert message).

This event can be cancelled.

Gets or sets a value indicating the client-side event handler that is called when the RadAutoCompleteBox is about to be populated (for example from web service).

C#
[Bindable(false)]
[ClientControlEvent]
[ClientPropertyName("requesting")]
public string OnClientRequesting { get; set; }
Property Value:

A string specifying the name of the JavaScript function that will handle the event. The default value is empty string.

If specified, the OnItemsRequesting client-side event handler is called when the RadAutoCompleteBox is about to be populated. Two parameters are passed to the handler:

  • sender, the menu client object;
  • eventArgs with three properties:
    • get_context(), an user object that will be passed to the web service.
    • set_cancel(), used to cancel the event.

This event can be cancelled.

Gets or sets the name of the JavaScript function called when the text is changed

C#
[ClientControlEvent]
[ClientPropertyName("textChanged")]
public string OnClientTextChanged { get; set; }

Specifies the timeout after each keypress before RadAutoCompleteBox fires a request to get its data from web service or server-side.

C#
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("_requestDelay")]
public int RequestDelay { get; set; }

In miliseconds. RequestDelay = 500 is equal to half a second delay.

C#
protected DataSourceSelectArguments SelectArguments { get; }

Gets or sets a value indicating whether a loading icon should be shown while a request it pending.

C#
[Bindable(false)]
[ClientControlProperty]
[ClientPropertyName("showLoadingIcon")]
public bool ShowLoadingIcon { get; set; }

Gets or sets the Single Line Entries mode of RadAutoCompleteBox.

C#
[Bindable(true)]
[ClientControlProperty]
[ClientPropertyName("_singleLineEntries")]
public RadAutoCompleteSingleLineEntries SingleLineEntries { get; set; }

Gets or sets the skin name for the control user interface.

C#
[TypeConverter("Telerik.Web.Design.SkinTypeConverter, Telerik.Web.Design, Version=2026.3.812.462, Culture=neutral, PublicKeyToken=121fae78165ba3d4")]
public override string Skin { get; set; }
Property Value:

A string containing the skin name for the control user interface. The default is string.Empty.

Overrides: RadDataBoundControl.Skin

If this property is not set, the control will render using the skin named "Default". If EnableEmbeddedSkins is set to false, the control will not render skin.

C#
protected override bool SupportsRenderingMode { get; }

Overrides: RadDataBoundControl.SupportsRenderingMode

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Gets the text of the input field.

C#
public string Text { get; }
Property Value:

The text composed of all the AutoCompleteBoxEntry separated by a delimiter. The default is empty string.

Gets the Text settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public AutoCompleteBoxTextSettings TextSettings { get; }

Gets the Tokens settings.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public AutoCompleteBoxTokensSettings TokensSettings { get; }

Gets the unique, hierarchically qualified identifier for the server control.

C#
[ClientControlProperty]
[ClientPropertyName("_uniqueId")]
public override string UniqueID { get; }
Property Value:

The fully qualified identifier for the server control.

Overrides: Control.UniqueID

Gets the settings for the web service used to populate items.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public WebServiceSettings WebServiceSettings { get; }
Property Value:

An WebServiceSettings that represents the web service used for populating items.

Use the WebServiceSettings property to configure the web service used to populate items on demand. You must specify both Path and Method to fully describe the service.

In order to use the integrated support, the web service should have the following signature:

   <pre><code class="lang-csharp">[ScriptService]

public class WebServiceName : WebService { [WebMethod] public DropDownDataItemData[] WebServiceMethodName(object context) { // We cannot use a dictionary as a parameter, because it is only supported by script services. // The context object should be cast to a dictionary at runtime. IDictionary<string, object> contextDictionary = (IDictionary<string, object>) context;

    //...
}

}

The HTML Z-index of the items dropdown of RadAutoCompleteBox. Its default value is 7000.

C#
[Bindable(false)]
public int ZIndex { get; set; }

Can be used when the dropdown is to be shown over content with a specified Z-index. If the RadAutoCompleteBox items dropdown is displayed below the content, set the ZIndex property to a value higher than the value of the HTML content below.

Methods

C#
protected override void AddAttributesToRender(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: RadDataBoundControl.AddAttributesToRender(HtmlTextWriter)

C#
protected AutoCompleteBoxEntryCollection CreateChildItemCollection()
Returns:

AutoCompleteBoxEntryCollection

C#
protected override DataSourceSelectArguments CreateDataSourceSelectArguments()
Returns:

DataSourceSelectArguments

Overrides: DataBoundControl.CreateDataSourceSelectArguments()

C#
protected override void DescribeComponent(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadDataBoundControl.DescribeComponent(IScriptDescriptor)

C#
public override void Focus()

Overrides: Control.Focus()

C#
protected virtual string GetPostbackEventReference()
Returns:

string

C#
protected void LoadDropDownItems(RadAutoCompleteContext context)
Parameters:contextRadAutoCompleteContext

Executed when post data is loaded from the request

C#
protected override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Parameters:postDataKeystringpostCollectionNameValueCollectionReturns:

bool

Overrides: RadDataBoundControl.LoadPostData(string, NameValueCollection)

C#
protected override void LoadViewState(object savedState)
Parameters:savedStateobject

Overrides: DataBoundControl.LoadViewState(object)

Raises the DataSourceSelect event.

C#
protected bool OnDataSourceSelect(AutoCompleteBoxDataSourceSelectEventArgs e)
Parameters:eAutoCompleteBoxDataSourceSelectEventArgs

The AutoCompleteBoxDataSourceSelectEventArgs instance containing the event data.

Returns:

bool

C#
protected void OnDropDownTemplateNeeded(AutoCompleteDropDownItemEventArgs e)
Parameters:eAutoCompleteDropDownItemEventArgs

The AutoCompleteDropDownItemEventArgs instance containing the event data.

C#
protected virtual void OnEntryAdded(AutoCompleteEntryEventArgs e)
Parameters:eAutoCompleteEntryEventArgs

The AutoCompleteEntryEventArgs instance containing the event data.

C#
protected virtual void OnEntryRemoved(AutoCompleteEntryEventArgs e)
Parameters:eAutoCompleteEntryEventArgs

The AutoCompleteEntryEventArgs instance containing the event data.

C#
protected override void OnPreRender(EventArgs e)
Parameters:eEventArgs

Overrides: RadDataBoundControl.OnPreRender(EventArgs)

C#
protected virtual void OnTextChanged(AutoCompleteTextEventArgs e)
Parameters:eAutoCompleteTextEventArgs

The AutoCompleteTextEventArgs instance containing the event data.

C#
protected override void PerformDataBinding(IEnumerable data)
Parameters:dataIEnumerable

Overrides: DataBoundControl.PerformDataBinding(IEnumerable)

C#
protected void RaiseDropDownTemplateNeeded(object item)
Parameters:itemobject
C#
public void RaisePostBackEvent(string eventArgument)
Parameters:eventArgumentstring

Implements: IPostBackEventHandler.RaisePostBackEvent(string)

C#
protected override void RenderContents(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: RadDataBoundControl.RenderContents(HtmlTextWriter)

C#
protected override object SaveViewState()
Returns:

object

Overrides: DataBoundControl.SaveViewState()

C#
protected override void TrackViewState()

Overrides: DataBoundControl.TrackViewState()

Events

Occurs before a select command is sent to the DataSource.

C#
public event AutoCompleteBoxDataSourceSelectEventHandler DataSourceSelect

Occurs before template is being applied to the dropdown item.

C#
public event AutoCompleteDropDownItemEventHandler DropDownTemplateNeeded

The DropDownTemplateNeeded event is commonly used for dynamic templating.

Occurs when an entry is added

C#
public event AutoCompleteEntryEventHandler EntryAdded

Occurs when an entry is removed

C#
public event AutoCompleteEntryEventHandler EntryRemoved

Occurs when the text is changed

C#
public event AutoCompleteTextEventHandler TextChanged
In this article
DefinitionConstructorsRadAutoCompleteBox()PropertiesAllowCustomEntryAriaSettingsAutoPostBackChildrenClientDropDownItemTemplateCollapseAnimationControlIdCultureDataTextFieldDataTextFormatStringDataValueFieldDelimiterDropDownHeightDropDownItemsDropDownItemTemplateDropDownPositionDropDownWidthEmptyMessageEnableAriaSupportEnableClientFilteringEnableDirectionDetectionEnableScreenBoundaryDetectionEntriesExpandAnimationFilterHeightHighlightFirstMatchInputTypeIsCaseSensitiveLabelLabelCssClassLabelWidthLocalizationLocalizationPathMaxResultCountMinFilterLengthOnClientDropDownClosedOnClientDropDownClosingOnClientDropDownItemDataBoundOnClientDropDownOpenedOnClientDropDownOpeningOnClientEntryAddedOnClientEntryAddingOnClientEntryRemovedOnClientEntryRemovingOnClientLoadOnClientRequestedOnClientRequestFailedOnClientRequestingOnClientTextChangedRequestDelaySelectArgumentsShowLoadingIconSingleLineEntriesSkinSupportsRenderingModeTagKeyTextTextSettingsTokensSettingsUniqueIDWebServiceSettingsZIndexMethodsAddAttributesToRender(HtmlTextWriter)CreateChildItemCollection()CreateDataSourceSelectArguments()DescribeComponent(IScriptDescriptor)Focus()GetPostbackEventReference()LoadDropDownItems(RadAutoCompleteContext)LoadPostData(string, NameValueCollection)LoadViewState(object)OnDataSourceSelect(AutoCompleteBoxDataSourceSelectEventArgs)OnDropDownTemplateNeeded(AutoCompleteDropDownItemEventArgs)OnEntryAdded(AutoCompleteEntryEventArgs)OnEntryRemoved(AutoCompleteEntryEventArgs)OnPreRender(EventArgs)OnTextChanged(AutoCompleteTextEventArgs)PerformDataBinding(IEnumerable)RaiseDropDownTemplateNeeded(object)RaisePostBackEvent(string)RenderContents(HtmlTextWriter)SaveViewState()TrackViewState()EventsDataSourceSelectDropDownTemplateNeededEntryAddedEntryRemovedTextChanged
Not finding the help you need?
Contact Support