Hi,
Table allows you to globally enable/disable sorting on all columns via setSortDisabled(boolean).
Is there a way to turn off sorting on a specific column, and keep sorting enabled on other columns?
thanks, cheers.
Hi,
Table allows you to globally enable/disable sorting on all columns via setSortDisabled(boolean).
Is there a way to turn off sorting on a specific column, and keep sorting enabled on other columns?
thanks, cheers.
Hi,
Table checks if the container implement Sortable and, in that case, asks it for what properties can be sorted using Container.Sortable.getSortableContainerPropertyIds(). Typically the container returns all properties that implement Comparable. You should be able to override getSortableContainerPropertyIds() in either Table or the container if you want full control over what the user can use for sorting.
Great, thanks Artur.
cheers.
Hi,
I have a table column with checkboxes. I was able to disable the column sort by overiding getSortableContainerPropertyIds(). But the problem now is, the checkbox listener (new Property.ValueChangeListener()) is not triggered anymore. Any solution to this?
Thanks!
Sound like a rather unrelated problem to me. It would be helpful if you would cut your code-base down as far as possible and post a minimal working example that demonstrates the problem. In most cases you will see the problem by yourself while doing this, in all other cases we have something we can look at, run and even debug to get the problem sorted out.