Balakrishna
Balakrishna

Reputation: 33

How to get the name of the header in GWT celltable

Im working on a application in which the user has a GWT Celltable and when the column header is clicked, the name of the column should be displayed as a window alert. I checked out many tutorials but haven't found the solution. Please suggest me if there is any click handler function to get the name of the column by clicking on the header in GWT Celltable.

Upvotes: 0

Views: 526

Answers (1)

Andrei Volgin
Andrei Volgin

Reputation: 41099

You can override onPreviewColumnSortEvent for a column header and call getValue() on the header to get the text of the header.

Upvotes: 0

Related Questions