chaiyim
25 Dec 2010, 10:18 PM
Hello there:
I have a grid in my gxt site, which host a bounch of questions. Now at the response to a "delete" button click, the selected question is supposed to be removed from the grid, it didn't happen thou.
This is the snippet I tried:
private ListStore<Question> store = new ListStore<Question>();
ColumnModel cm = new ColumnModel(columnConfigs);
Grid<Question> grid = new Grid<Question>(store, cm);
....
//the above is to contruct the components
//next is to remove the selected questions...
for (Question q : selList) {
store.remove(q);
store.update(q);
}
store.commitChanges();
guess I might have incorrectly used store's apis, anyone out there can give me a hand?
Thanks a lot,
Chaiyim
I have a grid in my gxt site, which host a bounch of questions. Now at the response to a "delete" button click, the selected question is supposed to be removed from the grid, it didn't happen thou.
This is the snippet I tried:
private ListStore<Question> store = new ListStore<Question>();
ColumnModel cm = new ColumnModel(columnConfigs);
Grid<Question> grid = new Grid<Question>(store, cm);
....
//the above is to contruct the components
//next is to remove the selected questions...
for (Question q : selList) {
store.remove(q);
store.update(q);
}
store.commitChanges();
guess I might have incorrectly used store's apis, anyone out there can give me a hand?
Thanks a lot,
Chaiyim