Please try to detect the 'filterRules' property value in the 'onLoadSuccess' event. If the 'filterRules' is not empty, the data should be loaded from the filters.
$('#dg').datagrid({
onLoadSuccess:function(data){
var opts = $(this).datagrid('options');
console.log(opts.filterRules)
}
});