I have a grid and I am trying to filter on multiple values:
FirstName, LastName or FirstName + " " + LastName
So the user can search for:
"John"
"Smith"
"John Smith"
Currently I have:
grid.dataSource.filter({
logic: "or",
filters: [
{ field: "FirstName", operator: "contains", value: value },
{ field: "LastName", operator: "contains", value: value },
{ field: "MemberID", operator: "equals", value: value },
{ field: "JobTitle", operator: "contains", value: value },
{
logic: "and",
filters: [
{ field: "FirstName", operator: "equals", value: value },
{ field: "LastName", operator: "equals", value: value }
]
}
]
});
The search for "John" or "Smith" works however not on "John Smith"
Any ideas
Thanks
Tom