FilterExpression

10,248
Queso Cabrales
$14.0
12
0.0 %
$168.0
10,248
Singaporean Hokkien Fried Mee
$9.8
10
0.0 %
$98.0
10,248
Mozzarella di Giovanni
$34.8
5
0.0 %
$174.0
10,249
Manjimup Dried Apples
$42.4
40
0.0 %
$1,696.0
10,249
Tofu
$18.6
9
0.0 %
$167.4
10,250
Manjimup Dried Apples
$42.4
35
15.0 %
$1,261.4
10,250
Jack's New England Clam Chowder
$7.7
10
0.0 %
$77.0
10,250
Louisiana Fiery Hot Pepper Sauce
$16.8
15
15.0 %
$214.2
10,251
Louisiana Fiery Hot Pepper Sauce
$16.8
20
0.0 %
$336.0
10,251
Gustaf's Knäckebröd
$16.8
6
5.0 %
$95.8
OrderID
ProductName
UnitPrice
Quantity
Discount
Total Amount

The C1GridView now supports filtering by FilterExpression in C1TemplateField in the grid.

  • doFilter - This is the client-side method. It works with two parameters - headerText and filterExpression.
  • OnFiltering - This is the server-side event. End-users can implement their own customized filtering logic in this event.

In this sample, customized filtering process that use FilterExpression is implemented in ApplyFilterExpression() method. This code is to be executed in corresponding server-side event of user action (like Filtering, Sorting, Paging, etc).