Dear SmartGWT users,
I would like to discuss my solution.
I have ListGrid, this list grid should contain data according to the user needs. Simple filter UI was created. Every time user press Filter button, Filter button should be disabled, Criteria should be created, fetch server data operation should occur and finally Filter button should be enabled. My code looks like this:
Is there better alternative for this code?
In the docs I read about com.smartgwt.client.data.ResultSet but this class is not included in the SmartGWT 1.0b2.
Best regards,
Ales
I would like to discuss my solution.
I have ListGrid, this list grid should contain data according to the user needs. Simple filter UI was created. Every time user press Filter button, Filter button should be disabled, Criteria should be created, fetch server data operation should occur and finally Filter button should be enabled. My code looks like this:
Code:
btnFilter.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { btnFilter.setDisabled(true); lgOperations.invalidateCache(); lgOperations.fetchData(new Criteria("foo", (String) tiFoo.getValue()), new DSCallback() { public void execute(DSResponse response, Object rawData, DSRequest request) { btnFilter.setDisabled(false); } }); } });
In the docs I read about com.smartgwt.client.data.ResultSet but this class is not included in the SmartGWT 1.0b2.
Best regards,
Ales
Comment