문제

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