Hi,
So I have a ListGrid with filters as below
However, when I'm trying to use Filter for any of the columns, the ListGrid is trying to do a DataSource fetch instead of locally filtering the records
and is returning the records as is initially returned
For the backend I'm also sending the number of records to be displayed
DSResponse response = new DSResponse(res);
response.setStatus(DSResponse.STATUS_SUCCESS);
response.setSuccess();
response.setStartRow(0);
response.setEndRow(res.size());
response.setTotalRows(res.size());
return response;
The properties of the ListGrid are as follows
lGrid.setAutoFetchData(false);
lGrid.setShowGridSummary(true);
lGrid.setCanEdit(true);
lGrid.setShowFilterEditor(true);
lGrid.setFilterOnKeypress(true);
Can someone please help me to define the filter of the columns as a local filter, instead of doing a backend fetch every time?
So I have a ListGrid with filters as below
However, when I'm trying to use Filter for any of the columns, the ListGrid is trying to do a DataSource fetch instead of locally filtering the records
and is returning the records as is initially returned
For the backend I'm also sending the number of records to be displayed
DSResponse response = new DSResponse(res);
response.setStatus(DSResponse.STATUS_SUCCESS);
response.setSuccess();
response.setStartRow(0);
response.setEndRow(res.size());
response.setTotalRows(res.size());
return response;
The properties of the ListGrid are as follows
lGrid.setAutoFetchData(false);
lGrid.setShowGridSummary(true);
lGrid.setCanEdit(true);
lGrid.setShowFilterEditor(true);
lGrid.setFilterOnKeypress(true);
Can someone please help me to define the filter of the columns as a local filter, instead of doing a backend fetch every time?
Comment