Skip to main content

MVCxFilterControlSettings.FilterExpression Property

Gets or sets the current filter expression.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public string FilterExpression { get; set; }

Property Value

Type Description
String

A string value that specifies the current filter expression.

Remarks

Html.DevExpress().FilterControl<Product>(settings => {
    settings.Name = "filterControl";
    settings.Width = Unit.Percentage(100);
    settings.CallbackRouteValues = new { Controller = "Editors", Action = "FilterControlPartial" };
    ...
    settings.PreRender = (sender, e) => {
        var filterControl = (MVCxFilterControl)sender;
        filterControl.FilterExpression = "[Category.CategoryName] = 'Beverages'";
    };
}).GetHtml();
See Also