Try the code below to get the filter button.
var field = ... // the field to find
var btn = $('#dg').datagrid('getFilterComponent', field).nextAll('a.datagrid-filter-btn');
btn.addClass(...); // add your custom icon here
That works to fetch the filter button. But how can I set the Event handler to the Filter menu to change the button icon, after change filter options in example fom equals to nofilter?
The following code is not working
btn.menu({
onClick:function(item){
console.log(item);
}});