From ce725867fab16b6f70a14ea01e98ee9a7584549a Mon Sep 17 00:00:00 2001 From: John Colvin Date: Tue, 23 Jun 2020 12:58:03 -0500 Subject: [PATCH] DiscreteValuesFilterVM.Common.symbol optional populates item with new 'display_symbols' --- .../DataGridEx/Filters/VM/DiscreteValuesFilterVM.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client/spark/view/Controls/DataGridEx/Filters/VM/DiscreteValuesFilterVM.cs b/src/client/spark/view/Controls/DataGridEx/Filters/VM/DiscreteValuesFilterVM.cs index 53b3e8af5..91685706d 100644 --- a/src/client/spark/view/Controls/DataGridEx/Filters/VM/DiscreteValuesFilterVM.cs +++ b/src/client/spark/view/Controls/DataGridEx/Filters/VM/DiscreteValuesFilterVM.cs @@ -402,8 +402,10 @@ namespace mbts.spark.filters { public static IDataGridColumnPersistentFilter exchange(Func get_row_exchange, string prop_name) => Create(EnumHelper.get_values_except(Venue.Unset).ToList(), get_row_exchange, prop_name); // Symbol - public static IDataGridColumnPersistentFilter symbol(Func get_row_symbol, string prop_name) => - Create(co2.UserSymbol.get_all().Select(u => u.symbol).Distinct().ToList(), get_row_symbol, prop_name); + public static IDataGridColumnPersistentFilter symbol(Func get_row_symbol, string prop_name, bool use_display_symbols = true) { + var symbols = use_display_symbols ? SecurityHelper.get_all_display_symbols() : co2.UserSymbol.get_all().Select(u => u.symbol); + return Create(symbols.Distinct().ToList(), get_row_symbol, prop_name); + } // Security Type public static IDataGridColumnPersistentFilter security_type(Func get_row_security_type, string prop_name) => Create(EnumHelper.get_values_except(