Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Large Database (Server Mode)

To start filtering, enter symbols into the editor's text box.
 
 
v
Customer Details
First Name:
Last Name:
Phone:


This demo illustrates how to use the DevExpress ASP.NET MVC ComboBox in Database Server Mode. In this mode, the editor automatically creates requests to a data table and loads only the required data to the server memory.

Do the following actions to enable Database Server Mode for the ComboBox extension:

  1. Use the CallbackRouteValues method to specify the editor's callback routing logic.
  2. Use the BindToLINQ/BindToEF methods to bind the editor to data.

In this demo, the CallbackPageSize property allows you to control the number of records the editor loads on the client on each request. In this case, the control sends a callback to the server when a user scrolls or filters the editor.

Note that the control generates SQL requests automatically. Refer to the Custom Data Binding demo that illustrates how to implement custom logic for data loading.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxDataEditorsDemos