Hi Johnny,
Sorry - a couple more questions for you …
Question #1a:
In the Datagrid, there is the option for “Quick Search” at the top of each column.
For varchar type of data, it appears to be doing a ‘contains’ type of match.
For example, the search string of “OL” will match “wolfe”
However, when the field is a number, it appears to require an exact match.
For example: if the datafield is “323323”, it will only match on “323323” and not a substring (e.g. “23”).
I thought perhaps changing that field to be a “string” in grocerycrud would change the behavior.
So, I tried something like:
$crud->fieldTypeSearchColumn(‘PatriotID’, ‘text’);
but the behavior didn’t change at all.
The filter menu option allows for searching based on ‘contains’ and that does what I expected, but I was hoping to see that work as a part of the Quick Search options on the columns.
Is there an option to do that, or do I need to cast the data into a different data type or something?
(this was something that worked in GCv1, but finding the behavior change in v3)
Question 1b …for a column that utilizes a callback to display the contents, is there any way to make that content searchable via the Quick Search option as well? Even exact matches aren’t filtering as matches.
Question #2:
When looking at the Read (clicking the view button), longer text fields are abbreviated and display an ‘eye’ icon to reveal the multi-line data. Is there perhaps a config option to have those always expanded vs requiring the user to click on them?
Thanks again for the help
Erick