Hi,
I have a Dropdownlist of Country Codes and their Country.
Example { id: "AFG", code: "(+93)", country: "Afghanistan" },
I want to be able to filter on the code and the country name, something like below.
public onFiltering: EmitType<any> = (e: FilteringEventArgs) => {
let query = new Query();
let query2 = new Query();
//frame the query based on search string with filter type.
query = (e.text != "") ? query.where("country", "startswith", e.text, true) : query;
query2 = (e.text != "") ? query2.where("code", "contains", e.text, true) : query2;
//pass the filter data source, filter query to updateData method.
e.updateData(this.countryCodes, query);
e.updateData(this.countryCodes, query2);
};
This isn't working, how do I filter on those 2 fields?