我的ListGrid
已设置.setSelectionType(SelectionStyle.SIMPLE)
和.setSelectionAppearance(SelectionAppearance.CHECKBOX)
,但现在我想在加载一些记录时将第一条记录的复选框设置为true。那么,我该如何编码?< / p>
答案 0 :(得分:0)
尝试以下方法:
listGrid.addDataArrivedHandler(new DataArrivedHandler() {
@Override
void onDataArrived(DataArrivedEvent event) {
listGrid.selectRecord(0);
}
});