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.
I'm using grid with BeanContainer to display data which came from DB. I'd like to add somehow a header click listener, which is able to show a context menu when the user clicked with right button on the header, and reorder the table when the user clicked with left button. Is there any possible way to make a column header click listener like this?
I found only the SortListener, which reacts when a header is clicked, but the SortEvent does not contain any information about which button was clicked.