@model IEnumerable<FlexGridData.Sale>

<h1>
    Custom Filter Operators
</h1>

<p>
    The <b>FlexGridFilter</b> class is localizable, and you can take
    advantage of that not only to customize the strings displayed in
    the UI, but also which filter conditions to show for each data
    type.
</p>
<p>
    In this sample, we customized the list of operators by assigning
    custom arrays to the filter's <b>stringOperators</b>, <b>numberOperators</b>,
    <b>dateOperators</b>, and <b>booleanOperators</b>. Open the filter
    drop-downs to see the effect.
</p>
<p>
    This technique allows you to re-order, remove, and include operators
    for each data type. It does not allow you to create new, custom
    operators. For that, you would have to fork the source code and
    customize it.
</p>

@(Html.C1().FlexGrid().Id("theGrid").Height(250)
    .Bind(b=>b.Bind(Model).DisableServerRead(true))
    .Filterable(f=>f.DefaultFilterType(FilterType.Condition)))