CriteriaPolicy.DROPONCHANGE

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?

I found in the forum that invalidatecache has to be called in order to get a fresh refresh from teh server.
http://forums.smartclient.com/showthread.php?t=4142&highlight=CriteriaPolicy

I will check now to see if 2 requests are sent to the server.

Its wierd but including invalidatecache before the fetchdata(criteria) request, cause the client to send 6-7 requests to the server.

Has anyone faced this issue before??

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.