Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
Remove sort icon from grid's header
Hi, everyone.
I'm really struggling to find a way to remove the default sort icon from the grid's header. Is there a way to do it?
Last updated on
Hi Victor,
if you want to get rid of sorting entirely, you can do that on the grid's column like so:
Column col = grid.getColumn("firstName"); // or whatever
col.setSortable(false);
If you want to disable the sort icon but keep the sorting, you can do it with styles. The following seems to work with the Valo theme:
.v-grid-header .sort-asc:after, .v-grid-header .sort-desc:after {
content: none;
}
Best regards,
Olli Tietäväinen
Vaadin Developer
Last updated on
You cannot reply to this thread.