質問

my ListGrid already set .setSelectionType(SelectionStyle.SIMPLE) and .setSelectionAppearance(SelectionAppearance.CHECKBOX),but now I want to set the checkbox of the first record true when loaded some records.So,how can I code it ?

役に立ちましたか?

解決

Try the following:

listGrid.addDataArrivedHandler(new DataArrivedHandler() {
    @Override
    void onDataArrived(DataArrivedEvent event) {
        listGrid.selectRecord(0);
    }
});
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top