I'm doing a similar thing to yours and am facing other problems I'm trying to solve.
My problem is that the callbacks at hand are called directly on drag/drop, not after the datasource actually adds/removes.
but if i do the remove myself in order do be able to define the execute method and act on the dsresponse, i get two calls, since smartgwt also issues an automatic remove.
Code:
addRemoveRecordClickHandler(new RemoveRecordClickHandler() { @Override public void onRemoveRecordClick(RemoveRecordClickEvent event) { final ListGridRecord record = assignedProductsGrid.getRecord(event.getRowNum()); leadProductAssignedDS.performCustomOperation("removeProduct", record); // Disable default behavior (meaning a remove request) event.cancel(); } });
Best regards,
Blama
Leave a comment: