This demo illustrates the DevExpress MVC Filter Control (FilterControlExtension) that emulates the built-in filter.
In this demo, specify the filter criteria and click Apply. This calls the Filter Control's Apply client method and raises the filter extension's Applied client-side event to filter the GridView data.
The GetFilterExpressionInfo method returns filter criteria information (MVCxFilterControlExpressionInfo) in the controller.
This Filter Control extension automatically creates all columns (including embedded) if you use a strongly typed extension (Html.DevExpress().FilterControl<ModelType>(...)). You can use the MVCxFilterControlSettings.MaxHierarchyDepth property to specify the maximum number of nested levels in the filter control. You can also add hidden columns to the Filter Control extension's Columns collection.
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).
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxDataEditorsDemos |