how to disable table sort

In the table, I want to disable certain sort column, I should do?

thanks!

Hi!

If I understand correctly, you wish to disable sorting for a single (or possibly some specific) column(s), but still allow sorting on some columns?

Currently you cannot enable/disable sorting on a per-column basis. However, a workaround that should work is that you add the columns that should not be sortable as generated columns, since generated columns cannot be sorted.

See
Table.addGeneratedColumn()
.

HTH,
/Jonatan

You can customize which columns are sortable by overriding Container.Sortable.getSortableContainerPropertyIds() or Table.getSortableContainerPropertyIds() - just make sure the columns you return are really sortable.