Skip to main content

ASPxAutoCompleteBoxBase.Items Property

Gets the collection of editor items.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public virtual ListEditItemCollection Items { get; }

Property Value

Type Description

A collection of editor items.


Use the Items property to access the editor’s item collection. The property is not in effect if the editor is bound to data.

Note that item values (Value) must be unique.

View Example: Combo Box for ASP.NET Web Forms - How to get hidden column values on the client

<dx:ASPxComboBox ID="ASPxComboBox1" ClientInstanceName="cbox" ValueField="ProductID" DropDownStyle="DropDownList"
    OnCustomJSProperties="ASPxComboBox1_CustomJSProperties" DataSourceID="SqlDataSource1" runat="server" Width="300"> 
        <dx:ListBoxColumn FieldName="ProductID" />
        <dx:ListBoxColumn FieldName="ProductName" />
        <dx:ListBoxColumn FieldName="CategoryID" />
        <dx:ListBoxColumn FieldName="UnitPrice" Visible="false" />
<dx:ASPxButton ID="ASPxButton1" runat="server" Text="UnitPrice value" AutoPostBack="false">
    <ClientSideEvents Click="function(s, e) {
        var v = cbox.cpHiddenColumnValues[cbox.GetSelectedIndex()];
        }" />
protected void ASPxComboBox1_CustomJSProperties(object sender, DevExpress.Web.CustomJSPropertiesEventArgs e)
    ArrayList list = new ArrayList();
    foreach (ListEditItem item in ASPxComboBox1.Items)
    e.Properties["cpHiddenColumnValues"] = list;

ASPxTokenBox Specificity

  • To work properly, an item’s Text and Value property values should be specified.
  • An item’s Text property value cannot contain a comma (,), semicolon (;), or a sign specified by the TextSeparator property.
  • An item’s Value property value cannot contain a comma (,), semicolon (;), or a sign specified by the ValueSeparator property.
See Also