Multiple Filters

I hve one filter outside the grid and it is Programmating filter and i have written my logic inside there.Now i have one text filter inside the grid.After i perform filtering using custom filter , the data in the grid is filtered correctly.Now i want to filter in those filtered data using text filter in the grid(which is happening as expected).It is showing all the records not in the filtered data.

Programmating filter logic:

gridData.filterBy(Id,function(value){
for(var i=0;i<list.length;i++) {
if(value.toString().indexOf(list[i])!=-1) return true;
}
return false;
},false);

i tried changing preserve to true.But its not working.kindly helm me in this regard

Unfortunately the in-built filters cannot integrate with the filterBy() method.
Also, using the preserve parameter set to true should keep the filtered state before the filterBy() calling.