ASPxAutoCompleteBoxBase.IncrementalFilteringMode Property
Specifies the incremental filter mode.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v18.2.dll
Declaration
[DefaultValue(IncrementalFilteringMode.Contains)]
public virtual IncrementalFilteringMode IncrementalFilteringMode { get; set; }
Property Value
Type | Default | Description |
---|---|---|
IncrementalFilteringMode | **Contains** | A value of the enumeration. |
Available values:
Name | Description |
---|---|
Contains | The editor filters items that contain the filter string. |
StartsWith | The editor filters items that begin with the filter string. |
None | The editor does not filter items. |
Remarks
The editor can filter items while a user types the filter string. Use the IncrementalFilteringMode property to specify the editor’s filter mode.
- IncrementalFilteringMode=”Contains”
- IncrementalFilteringMode=”StartsWith”
The editor can use callbacks in incremental filter mode.
Declaratively:
<dx:ASPxComboBox ID="Countries" runat="server" EnableCallbackMode="True" IncrementalFilteringMode="StartsWith">
<Items>
<!--...-->
</Items>
</dx:ASPxComboBox>
In Code:
protected void Page_Load(object sender, EventArgs e){
ASPxComboBox cb = new ASPxComboBox();
cb.Items.AddRange(new List<ListEditItem>(){
//...
})
cb.EnableCallbackMode = true;
cb.IncrementalFilteringMode = IncrementalFilteringMode.StartsWith;
}
See Also