This project is read-only.

Pass variable's value to SetInitialFilter

Nov 18, 2015 at 7:51 PM
I had the following attempt to pass a filtered value to initialize the filter but it doesn't seem to be working this way:
       columns.Add(c => c.Location).Titled("Location").SetWidth(80).Filterable(true).SetInitialFilter(GridMvc.Filtering.GridFilterType.Contains, Model.SaleSummaryStatsViewModel.FilterLocation );
Is there a way to pass a variable's value to this function ?

Thanks in advance,

Nov 18, 2015 at 8:35 PM
Well after a lot of debugging I had discover that the problem is other, basically the format in which the filterlocation is passed and the way that the filter is treated when the string is empty.
Marked as answer by ggramajo on 11/19/2015 at 11:15 AM