I am using a Listgrid and RestDatasource to send and recieve data from the server depending on various filters/criterias.
the CriteriaPolicy for my Datasource is CriteriaPolicy.DROPONCHANGE
I have found that even if I do a fetchdata by creating a new criteria object(with a previously used filter), no server request is fired.
Do I have to do a invalidatecache before i call fetchdata?
this.invalidateCache();
this.fetchData(criteria);
Will this result in 2 calls to the server? first with the invalidatecache and send with the fetchdata?
You can get that kind of behavior if you are returning too few rows, or you aren’t setting proper startRow/endRow values in your response (eg, off by one). Look at the traffic in the RPC tab and pay close attention to row numbers.