# ASP.NET Core MVC / Razor Pages: Auto-Complete Select A simple select component sometimes isn't useful with a huge amount of data. ABP Provides a select implementation that works with pagination and server-side search via using [Select2](https://select2.org/). It works with single or multiple choices well. A screenshot can be shown below. | Single | Multiple | | --- | --- | | ![autocomplete-select-example](../../images/abp-select2-single.png) |![autocomplete-select-example](../../images/abp-select2-multiple.png) | ## Getting Started This is a core feature and it's used by the ABP Framework. There is no custom installation or additional packages required. ## Usage A simple usage is presented below. ```html ``` The select must have the `auto-complete-select` class and the following attributes: - `data-autocomplete-api-url`: * API Endpoint url to get select items. **GET** request will be sent to this url. - `data-autocomplete-display-property`: * Property name to display. _(For example: `name` or `title`. Property name of entity/dto.)_. - `data-autocomplete-value-property`: * Identifier property name. _(For example: `id`)_. - `data-autocomplete-items-property`: * Property name of collection in response object. _(For example: `items`)_ - `data-autocomplete-filter-param-name`: * Filter text property name. _(For example: `filter`)_. - `data-autocomplete-selected-item-name`: Text to display as selected item. - `data-autocomplete-parent-selector`: jQuery selector expression for parent DOM. _(If it's in a modal, it's suggested to send the modal selector as this parameter)_. - `data-autocomplete-allow-clear`: If `true`, it'll allow to clear the selected value. Default value: `false`. - `data-autocomplete-placeholder`: Placeholder text to display when no value is selected. Also, selected value(s) should be defined with the `