I have a grid bound to remote data in virtual mode. What I need is to predefine a filter to reduce the amount of data initially requested (mainly to reduce the time to calculate the aggregates on server side).
In which callback function of the grid do I have to define and add the filter to the grid that this filter will already take effect for the first fired ajax request?
– In the ‘ready’ callback, it is too late: here, the grid has already sent the ajax request; adding a filter will re-fire a request with the new filter – but I do not want the initial unfiltered request.
– ‘bindingcomplete’ is logically also too late.
– … but which one is fired before data is requested and I do have access to the grids object to perform $scope.myGrid.addfilter(…)?
– Setting “autobind: false”, in the source settings seem also not to do the job.
Can you help me? – Thanks in advance!
– badera