protected override void OnInitialized() { // **** required for your filter to work **** Root.AddFilterComponent(this); Context = new FilterContext <bool?>(); Context.PropertyChanged += Context_PropertyChanged; }
protected override void OnInitialized() { if (!typeof(FilterType).IsNumeric()) { throw new Exception($"{nameof(FilterType)} must be a numeric type."); } // **** required for your filter to work **** Root.AddFilterComponent(this); Context = new FilterContext <FilterType>(); Context.PropertyChanged += Context_PropertyChanged; }
protected override void OnInitialized() { Root.AddFilterComponent(this); }