Posted 3 October 2017, 4:14 am EST
As an experiment I want to send by ajax filterDefinition, than parse and save it in session.
How it apply in helper ?
...
.Filterable(f =>
f.DefaultFilterType(FilterType.Both)
.Id("UsersGridFilter")
.ColumnFilters(cfsb =>
{
cfsb.Add(cfb => cfb.Column("Id").FilterType(FilterType.None));
foreach (var item in Model.GetFilterTypes())
{
cfsb.Add(cfb => cfb.Column(item.Key).FilterType(item.Value);
}
})
.OnClientFilterApplied("saveFilterState")
)
I see in ColumnFilter method and property FilterText
ValueFilter(cf=>cf.FilterText)
Are there examples of use?