Changing the text colour of data in a cell, in a row, in a datagrid is possible by using $crud->callbackColumn() and adding html to the cell (e.g. “FF-”.$value.“”).
But how can I change the background colour of an entire row?
Unless something already exists, I think I would like a new function tha…
Hi Johnny,
Below is the error trace I was getting with the search.
The ‘$crud->fieldTypeSearchColumn’ workaround fixed it.
Thanks
Ray
Error: Internal Server Error.
Server Response:
{
“title”: “PDOException”,
“type”: “PDOException”,
“code”: 500,
“message”: “SQLSTATE[HY000]: General error: …
Hi Johnny,
Thanks for the fast response.
The workaround works well.
Now the print format is the same as the display format.
And the sorting of those date columns still works.
The only hiccup is the quick search function throws an error. I think because a string is being search for in the databa…
Hi Johnny,
Thanks for your support
Ray
Enterprise v3.1
The date format of a column in a datagrid is correct on the screen dd-mm-yyyy.
But if I try to print that datagrid from the GroceryCrud print button, the output format changes to yyyy-mm-dd.
I have tried:
$crud->fieldTypeColumn(‘DOB’, ‘native_date’);
$crud->fieldType(‘DOB’, ‘nat…
Enterprise 3.2.7
If the user sets the width of a column with the Columns menu.
And the width is less than the width required for inline editing, the buttons spread across the next columns and can’t be clicked. So the inline edit can not be canceled.
The ugly workaround is to tell the user not to …
Hi Johnny,
Sorry I mispelled your name in the last reply
Ray
Hi Jonny,
Thanks for the update.
Yes it is working fine.
displayAs() now shows new lines.
Thanks for your support
Ray
I’m porting an application from v2.0 Cummunity to v3.2.6 Enterprise.
In v2 I could create grid titles on multiple lines using displayAs() with \n in the string; but only if using double quotes.
With v3, the title is always on one line.
How can I create titles on multiple lines?
Below is a bit o…
OK. I Think I have the solution.
Instead of using ‘$crud->fieldType(‘Age’, ‘virtual’);’
Use '$crud->mapColumn(‘Age’,‘Child_first_name’);
Or just map the virtual column to any real column. Then callbackColumn produces results.
Johnny, maybe a note in the documentation for callbackColunm that say…
I am porting an application from v2.0 Community to v3.2.6 Enterprise
callbackColumn() worked perfectly in v2.0 but in v3.2.6 it doesn’t seem to do anything.
Below is my test method
public function test()
{
$crud = $this->_getGroceryCrudEnterprise();
$crud->setTable('childr…