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:
- Use the CallbackRouteValues method to specify the editor's callback routing logic.
- 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.
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).
The source code files for this demo are installed (by default) in the following directory:
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxDataEditorsDemos