Hi all, how can I manage a boolean column actually containing a data type attribute, to understand if the date is null returns false otherwise true.
Thanks
Hi all, how can I manage a boolean column actually containing a data type attribute, to understand if the date is null returns false otherwise true.
Thanks
With a custom expression. See https://www.yiiframework.com/doc/guide/2.0/en/output-data-widgets#grid-columns
Can I also filter and sort in the grid? I have an attribute “accepted_at” (type:date) that I want to make it boolean in the grid, thanks
Yes but you have to adjust search model used for data provider.
find it, model afterFind() is the solution! Thanks