我是SmartGWT
新手,当我在列表网格中选择特定记录时,我需要打开另一个窗口。以前我使用HoverCustomizer
但我无法进一步移动,因为有数百条记录要显示。那么我该如何完成此任务呢?
ListGrid list = new ListGrid();
//list configuration goes here
list.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event){
//Get the clicked record
Record row = list.getSelectedRecord();
//Check if thats the record you want
if(row != null && row.getAttribute("attribute").equals("thingToCheck"){
//Now just open the window
Window window = new Window();
//Configure here the window
window.show();
}
}
});