I have some data which consists of years from 2017 to 2019. Lets say the data is as so,
List<data> list = new List<data>();
list.Add({Year = 2017, ID = 1000});
list.Add({Year = 2017, ID = 1022});
list.Add({Year = 2018, ID = 1023});
list.Add({Year = 2018, ID = 1234});
list.Add({Year = 2019, ID = 1034});
list.Add({Year = 2019, ID = 1001});
I would like to perform an initial filter at start based on the selected year. In this case I run an filterpredicate at runtime.
sfDataGrid1.Columns["Year"].FilterPredicates.Clear();
sfDataGrid1.Columns["Year"].FilterPredicates.Add(new FilterPredicate() { FilterType = FilterType.Equals, FilterValue = 2017, PredicateType = PredicateType.And });
Which gives me the correct result. The issue comes when I try to use the advanced filter function checkboxes in the sfDataGrid, it just doesnt work. It either check boxes random entries and doesn't filter anything. For instance if I deselect all items in the advanced filter and just select ID = 1000, it would not update.
Any help would be appreciated.