I am working on admin custom module. My module table join with customer table.
Now I want to display User Name (customer firstname and lastname) values in single column in my custom module UI grid.
How can it will be done? Any one have idea?
Thanks
Best Answer
Little late on the answer, but hopefully helpful to those that finds this question.
Vendor/Module/view/adminhtml/ui_component/customer_listing.xml
Vendor/Module/Ui/Component/Listing/Column/Fullname.php
What is going on is that you are looping through all of the records for the grid listing, and applying data to the
fullname
column of the grid with the datafirstname
andlastname
fields of your model.