PDA

View Full Version : why can i make checkall item?



TOMMYZHANG
8 Sep 2009, 10:32 PM
hi,all
i am new in using ext-gwt ,today i use checkbox and checkbox group ti make a item like selectall. i make some checkboxs ,and at last i want to make a checkbox to check all checkbox when it was checked. but i do not konw how to do.anybody can help me ?
thanks all.

tommy

TOMMYZHANG
8 Sep 2009, 11:34 PM
it was fixed . and i paste the code below.

checkbox1.addListener(Events.Change, new Listener<BaseEvent>(){
public void handleEvent(BaseEvent be) {
if (check1.getValue()) {
check2.setValue(true);
check3.setValue(true);
}
else {

}
}
});

thanks everyone.