我在angular应用程序中使用了kendo-multiselect控件。
<kendo-multiselect [data]="airlinesInData" [(ngModel)]="value" [(value)]="aircodeselect" [textField]="'Airline'" [valueField]="'Code'" (valueChange)="applyFilters()" [valuePrimitive]="true"></kendo-multiselect>它给了我逗号分隔值,即VS,IA等。
以下是我的linq查询
currentDataSource = new List<IDetailRow>(currentDataSource).Where(x => x.firstSegmentAirline == this.aircodeselect).ToArray();我将如何过滤字符串中的每个值并返回最终结果。
发布于 2017-08-23 17:32:52
尝尝这个。不使用==,而使用LINQ contains,它将与所有选择的代码进行比较。
currentDataSource =新列表(CurrentDataSource).Where(x => List
https://stackoverflow.com/questions/45833651
复制相似问题