Hi, this is my sample code. I have a total of 3 ListGrids, each which resides in a Canvas, inside 3 tabs, which is inside one TabSet. If I remove the uncommented lines, I cant select any values, because on every click, the ListGrid is populated.
tab.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
if (tab.getSelectedTab() == allUsers) {
//adminService.getAllUsers(getAllUsersAsync);
} else if (tab.getSelectedTab() == activeUsers) {
//adminService.getActiveUsers(getActiveUsers);
} else if (tab.getSelectedTab() == inactiveUsers) {
//adminService.getInactiveUsers(getInActiveUsers);
}
}
});
I want to fill the ListGrid with data from results of a DB query, when I select a tab. How to fill data in the ListGrid when I change the tab?
Thanks.