Open s6carlo opened 8 years ago
@s6carlo this is for v3?. This has méthod display that I not use. For the last version, you know how to do?
Thanks!
Yes is for v3, because I have to manage a lot of data and datatableasync is the best way, so I exend it. For other versione you should check if the display method you use have a method applysearch to be overridden in a subclass.
@s6carlo Could you explain a little more as it would in the others version?. Thanks!
@mapeveri You should follow these steps:
Sorry but I am using the dev version and I don't have the code for v3.
@s6carlo thanks!!
I wrote a custom display to search column from a joined table, it need a custom column and a custom display model
In app/Admin/boostrap.php custom column and registrations
I create a folder inside /app/Admin called s6c with a DatatablesAsyncMultiSearch.php file , it is used to override the applySearch method
Now in the my model (Exampe.php) I add the method
Finally in app\Example.php
Now if you try to search a text the input is used also in the columng from the second table (in the example tableB, thanks to the new applySearch method of the custom display.
My two cents for this project! ( #112, #63, #237 )