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.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 3 weeks ago
Table not sorting on a normal addItem
hey guys,
First I am making a table using simple 3 properties like the following:
srchTable.addContainerProperty("Patient ID", Long.class, null);
srchTable.addContainerProperty("First Name", String.class, null);
srchTable.addContainerProperty("Last Name", String.class, null);
and then I am adding the items in it using simple addItem method like the following:
srchTable.addItem(new Object[]{
1, "Mark", "Twain"
}, 1);
srchTable.addItem(new Object[]{
2, "Albert", "Einstien"
}, 2);
srchTable.addItem(new Object[]{
3, "John", "Doe"
}, 3);
now if i use the table.setSortContainerPropertyId("Last Name"), it should show me the table with last name sorted, but its showing the way i entered it.
anybody correct me if I'm wrong somewhere.
Last updated on
You cannot reply to this thread.