Hello
I have a listGrid and a form that is construct with same Datasources
When I add or I save the form a new row appear in the listgrid that good.
But I want to select this row.
I do this :
But nothing is selected in the list grid !
what can I do ?
I have also play with
onDataArrived (that need a list.fetch) not good !
onSelectionChanged or UpdateSelection
Thanks
I have a listGrid and a form that is construct with same Datasources
When I add or I save the form a new row appear in the listgrid that good.
But I want to select this row.
I do this :
Code:
Button save = new Button("save");
save.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
form.saveData(new DSCallback() {
@Override
public void execute(DSResponse response, Object rawData, DSRequest request) {
SC.say("ok save ");
list.selectRecord(form.getValuesAsRecord());
}
});
}
});
what can I do ?
I have also play with
onDataArrived (that need a list.fetch) not good !
onSelectionChanged or UpdateSelection
Thanks
Comment