Customizing your grids

Based on the grid generated by default, our goal here is to obtain a nicely customized grid with autocomplete filters and more!

Let's imagine we have the following grid.
Fields

Let's clean up our grid and remove unnecessary fields.
We have removed the description, endsAt and track grid fields.

Adding the speaker avatar using Twig field
Now, let's add the speaker avatar into our talk grid.
Filters
Adding an autocomplete filter

We'd like to filter our talks by a specific speaker.
So, let's start by creating a FormType following the Symfony UX Autocomplete Documentation
Now we need to create our custom Grid filter.
Then, we add our SpeakerFilter to our grid.
Last updated