Loading...
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.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin Grid Disable horizontal Scrollbar and Sorting

Patrick Lange
6 years ago Oct 12, 2015 10:18am
Raimund Barbeln
6 years ago Nov 05, 2015 9:01am

You can disable column sorting by calling setSortable(false) for every column that should not be sorted.

As to how to disable the horizontal scollbar, that is something that I would like to do, too. Does anybody has an Idea for this?

Olli Tietäväinen
6 years ago Nov 12, 2015 8:17am

You could either freeze all of the columns, like so:
grid.setFrozenColumnCount(grid.getColumns().size());

Or try the following style:

.v-grid-scroller-horizontal {
        display: none;
}