Hi @johnny! Did you get some time to look at this?
I’m using GCE latest version with CI4 framework and when I try to apply some mask to input fields - mainly to float/decimal(10,2) fields - those values are changed (and masks are removed) when submitting! An example from customers table (tried with other mask library and a library of my own, none wo…
Are there any way to limit the setRelation to existing data only? I’ve noticed that when we use setRelation all the data from the related table is retrieved (and showed in the search combo filter, even if it is not present in the datagrid).
My mainly concern was that using the WHERE clause globally will transform a LEFT JOIN into a
INNER JOIN, loosing valuable data in the grid. You can check for yourself, using your own database: there is no reason for a query (to the customers table) containing a line like this:
->setRelation('sales…
Hello @johnny,
Me again… sorry for the long post, it is important although!
I invite you so we can think together about the usage of the where clause in setRelation, take your seat…
If the where statement in the setRelation method (4th parameter) corresponds to the joined table, why it does not …
I’m currently using ‘dropdown_search’ with thousands of values (retrieved from my model/database) and it works fine.
A minor issue/side effect of this workaround is that the advanced filter button (not quick search) only have a limited number of matching options like those in fig. below:
[image]
…
Hi @johnny!
I would love if you add support to allowing multiple unsetColumns calls without loosing all the previous ones, there are several use cases for this (like unsetting columns in a method or two).
$crud->unsetColumns(['contactLastName']);
$crud->unsetColumns(['phone']);
…
Just give groceryCrudSetQuickSearchValue a try. It should work…
Just a enhancement request…
When datagrid table is empty (no data yet), the displayed header with quick search fields can (and much of the time will) confuse the user thinking that he/she can add a new row by selecting or fulfilling those fields.
Users may avoid this confusion if they were only sh…
Thank you so much! I knew the child’s father would have a practical solution to this problem 
Hello @dwdc!
Did you set your “Status” field to boolean type?
$crud->fieldType('Status', 'boolean')
Didn’t tested it , but I think you can set your filter using javascript events like this:
window.addEventListener('gcrud.datagrid.ready', ({detail}) => {
groceryCrudSetQuickSearchValue('Status…
Hi @johnny !
I would like to change the quick search behavior of a column when I use callbackColumn() to change the way I display data in the grid.
For example, if the original values in a column are comma separated ids I can use a callbackColumn() to retrieve their names (instead of showing the i…
Hi, John!
Could you please remove the remaining " " from the action buttons in the datagrid? When we set (in config):
'action_button_type' => 'icon',
It results in:
<i class="fas fa-pencil-alt"></i> </a>
The text in the button is removed but not the space, causing the icon to not be center…
Hi, Johnny!
Just passing by to remind you that this translation issue still persists in the latest version (v3.1.2)…
Is it just me, or is there a problem with the image preview (not showing) in the deletion modal?
What is the error now? If it is the same error again then clearly your ‘except’ is not working and csrf is still enabled for your admin pages. You have to double check if the informed path (‘admin/*’) is correct for your application. You can also enable csrf with grocery crud by using (see here):
$…
Okay. I thought that, in this case, the solution would be in the backend (php).
Note that I need (very common situation, IMHO) not only to order by ‘priority’ but also show the ‘priority’ column data alongside the data in the ‘Selection Table’:
$crud->setRelationNtoN('actors', 'film_actor', 'actor…
Hi, @johnny !
Regretfully, I’m still unable to change the column width below about 100 pixels. Allow me to demonstrate:
[ScreenRecorderProject1 - 0.00.09-0.01.07-1 (2)]
Perhaps this minimal column width is the culprit?
[class^="gc-search-column-"] {
min-width: 160px;
}
Kind Regards!
Hi, John!
How difficult is it to show a column from the Relation Table along with a column from the Selection Table (see fig. below)?
[image]
What I need to accomplish is something like this:
$crud->setRelationNtoN('actors', 'film_actor', 'actor', 'film_id', 'actor_id', '{fullname} - {priority}…
For several setRelation fields, I would prefer not to utilize the standard searchable combo box.
How can I alter the type of the field (or column) to allow it to be used as a standard CHAR field so I can quick search freely and also have those advanced filter options (see img below)?
[image]
In …
Hi!
While enabling CSRF with CI4 and estabilishing a setRelation for a field, the quick search transforms into a combo box as usual. Problem is: if you click in the first (empty) option to clear the filter it triggers a “Not well JSON formatted response” error. I’ve noticed that this single click g…
While trying to set/customize the column width for each column I’ve noticed that I can’t reduce the width to less than 100px, why? 100 px is overkill for many columns, like “Age”, with only two digits and so on…
Thx.
[image]
Hi, John!
First of all, thanks for the new GCE version 3.1, it is a great improvement from previous versions.
But I have to report that the text below (‘paging_show_entries’) are not been translated.
[image]
Best Regards.
Thanks @johnny, I’ll give the new version a try. What exactly the new option “Display JavaScript files into the main output (default is false)” do? What is it used for?
Regards.
Hi! Instead of showing the error message below, how can we handle, in a user friendly way, those kind of errors: validation, duplicated key, deletion forbiden by foreing key dependency etc…
It would be great if we can catch those exceptions.
Thanks in advance.
[image]
CRITICAL - 2024-01-19 15:2…
I’m having markup problems with date and datetime fields (calendar not showing properly, maybe my bootstrap theme is interfering with it) so I decide to rely on native_time, native_date and native_datetime. How can I properly set (force) the locale for those type of fields? I think they are using br…
If the user searches on a page other than the first, the quick search (filter for columns) returns no results.
Steps to reproduce:
Navigate to https://www.grocerycrud.com/docs
Click Next page ›
Fill CustomerName quick search with “Volvo” and click enter
No results (but “Volvo” is in the second pa…
In fact, this removed the delay in the pagination click but, unfortunately, it resulted in another error when clicking on the buttons for the 1st and last page: Error: Internal Server Error. / empty response 
Okay, now it makes sense to me.
I know I’ve asked for too many features, but if it’s (super) easy to implement, wouldn’t it be worth creating an option for the user to disable this delay/behavior? I wonder if such a feature would not negatively affect the experience of most users, in exchange for …
Why pagination with GCE v3 is so slow compared to v2? You can check the loading speed in the links below:
Pagination with v3:
Pagination with v2:
As we can see (from the links above), in v2 the xhr request is triggered instantaneously. But in v3 in takes more than 1000ms to trigger the xhr and …