dhtmlxGrid: custom filter in headers

Hello to all,

How can I put a custom filter in the sub-headers of the grid ?




Technically you can place any custom html inside header, it can be a filtering form as well.
If you want to create custom “shortcut” - please check related article.
dhtmlx.com/docs/products/dhtmlxG … d_ccingrid

There is a one more, tricky solution, which can be used


mygrid.attachHeader("#text_filter,#text_filter");
mygrid.init();

mygrid.hdr.rows[1].cells[1].getElementsByTagName(“INPUT”)[0]._filter=function(){
var mask=this.value;
return function(val){
//filtering logic here
}
});

by such code, filtering logic of existing text filter can be changed to custom one.