The Data View provides the ability to initiate a custom callback on demand by using the client PerformCallback method and then performs required server-side processing. Typically, calling custom callbacks may be useful to solve a sorting or filtering data task displayed by the DataView extension.
This demo shows how DataView data can be sorted using custom callbacks. The data field used for sorting and the sort order can be selected using two combo boxes on the top right. The PerformCallback method of the DataView is called when there is a change to the combo box's selected value. Then, a specific SQL query is formed on the server side depending on current combo box values.
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\MVCxImageAndDataNavigationDemos