I have a search form beside the grid and when someone does a search I need it filter the grid. Is the below code how I would accomplish this or is this only a client-side solution? The filtering will happen on the server side. If the below code is also used server side filtering, how do I interpret the querystring on the GET request?
this
.submitSearch =
function
() {
dataSource.filter(
{ field:
"FirstName"
, operator:
"eq"
, value: $(
'FirstName'
).val() },
{ field:
"LastName"
, operator:
"eq"
, value: $(
'LastName'
).val() },
{ field:
"Email"
, operator:
"eq"
, value: $(
'Email'
).val() },
{ field:
"Phone"
, operator:
"eq"
, value: $(
'Phone'
).val() },
{ field:
"ReservationDate"
, operator:
"eq"
, value: $(
'ReservationDate'
).val() }
);
}