Posted 26 April 2018, 8:51 pm EST
Hi,
I have problem with restoring filter state.
For Example:
I have next .cshtml configuration for filters
.Filterable(f =>
{
f.DefaultFilterType(FilterType.Condition)
.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));
}
});
}
You can see that for column “Id” filterType is set to non.
from javascript I see that it is true;
I restore filter state such as in this link
http://demos.componentone.com/ASPNET/LearnMvcClient/C1FlexGrid/PersistingState
But when I set filterDefinition all settings in razor view is clear
http://joxi.ru/V2Vg6wjH0bLnMA
what wrong?