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.
CssImport when using Component Exporter by Mikhail Shabarov, 7 months ago
Grid: disable sorting of columns
grid.getColumn("propertyId of column").setSortable(false);
Last updated on
+2
Thanks Kim.
What if I want to disable sorting throughout entire columns?
Last updated on
Hi,
You can run some code on all Grid column using a simple for loop:
for (Column c : grid.getColumns()) {
// Insert your code here
}
//Teemu
Last updated on
+1
You cannot reply to this thread.