Query: “I dont't want to change the message. I want to change the predicate from "AND" to "OR". As you can see in the example code I already set the predicate to "or" but with no effect.”
In previously provided sample, ‘&&’ operator is used in filter message (in grid pager) to separate the two filtered columns with its value.It does not represent the predicate. So when filter button is clicked, Grid is filter with or predicate only. To ensure that it is working properly, kindly change the predicate to ‘and’ then ensure. Filtered values will be different. So values are filtered based on or predicate only. But in the filter message two strings are separated by ‘&&’. So we cannot change the filter message. So to overcome this we suggest you to use excel menu filter where you can filter the same column with or predicate.
From your query, we suspect that you are facing issue while performing searching in ejGrid with url adaptor. We are unable to reproduce the reported issue at our end. For your convenience we have created the sample.
Also refer the below knowledge base document to perform server side operation in ejGrid.
Please refer the below link for the sample.
After referring the sample still facing the issue, please get back to us with the following details.
- Share the complete grid code example(both view and controller page).
- Share the video demonstration Or screenshot of the issue.
- If possible, reproduce the issue in provided sample and revert back to us.