Hi
When using json to communicate with the server in Intenet Explorer 7 it caches the request so I dont get the latest data.
In Firefox the request gets processed every time.
Can someone let me know how to add a timestamp/parameter to the BasePagingLoader/json request so
http://localhost:8080/ProductApprova...art=0&limit=15
would appear as
http://localhost:8080/ProductApprova...=1242172212329
Code is
Code:
ColumnModel cm = new ColumnModel(ApprovalProcessGridHelper.getColumnConfig());
// Incoming data model type
ModelType type = ApprovalProcessGridHelper.getModelType();
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, "/ProductApproval/controller.json");
HttpProxy proxy = new HttpProxy(builder);
// Reading Json data
JsonReader<PagingLoadConfig> reader = new JsonReader<PagingLoadConfig>(type) {
@Override
protected ListLoadResult newLoadResult(PagingLoadConfig loadConfig, List<ModelData> models) {
PagingLoadResult result = new BasePagingLoadResult(models, loadConfig.getOffset(), loadConfig.getLimit());
return result;
}
};
// Loader
final BasePagingLoader loader = new BasePagingLoader(proxy, reader);
loader.setRemoteSort(true);
// Store
ListStore<ModelData> store = new ListStore<ModelData>(loader);
// Grid
grid = new Grid(store, cm) {
//show loading... on startup
protected boolean loaded;
protected void onAttach() {
super.onAttach();
if (!loaded) {
loaded = true;
loader.load();
}
}
};
grid.setLoadMask(true);
grid.setTitle("Approval Process");
grid.setBorders(true);
grid.setEnableColumnResize(true);
grid.setStripeRows(true);
grid.setWidth(1200);
grid.setHeight(600);
grid.show();