Hi,
i have these settings on listgrid to enable client-side filtering
and i am calling fetch on a listgrid like this:
The code above is working fine for client-side filtering, but it is little bit misleading that i have to set both criteria and map to DSRequest as well.
The problem is that i don't want to bring all the data on client with first fetch. Therefore i am setting a map in DSRequest which i passed later as a parameter for fetchData method.
With this approach the map is taken in consideration on sever and criteria on client.
My question is, is it possible to have client-side filtering with fetch mode set as BASIC,
so that i don't have to set both criteria and also map to DSRequest and still use client side filtering ?
Thanks
i have these settings on listgrid to enable client-side filtering
Code:
setDataProperties(new ResultSet() { { setFetchMode(FetchMode.LOCAL); setUseClientFiltering(true); } });
Code:
public void fetchDataForGrid(final Criteria criteria) { DSRequest dsRequest = new DSRequest(); dsRequest.setData(new HashMap<String, String>() { { put("fieldName", fieldValue); } }); fetchData(criteria, null, dsRequest); }
The problem is that i don't want to bring all the data on client with first fetch. Therefore i am setting a map in DSRequest which i passed later as a parameter for fetchData method.
With this approach the map is taken in consideration on sever and criteria on client.
My question is, is it possible to have client-side filtering with fetch mode set as BASIC,
so that i don't have to set both criteria and also map to DSRequest and still use client side filtering ?
Thanks
Comment