filter one column using exact match instead of like

Questionsfilter one column using exact match instead of like
Roy Plum asked 7 years ago

the filters at the top of the grid are great, but I have on column on the grid that I would rather have an exact match rather than contains.
is there an option or setting I can apply to one of the columns so that a filter for 101 finds ONLY 101 and not 1012, 2101   etc.
 
thanks
 
Roy

1 Answers
Abu Ghufran Staff answered 7 years ago

With that column in which you want exact search:
$col[“searchoptions”][“sopt”] = array(“eq”);
Other options are:
// optionally set limited search operators (e.g. bw = begins with, ‘eq’,’ne’,’lt’,’le’,’gt’,’ge’,’bw’,’bn’,’in’,’ni’,’ew’,’en’,’cn’,’nc’)

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

9 + 8 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?