Grid custom column with text filter

Hi



When I insert new column into grid by mygrid.insertColumn, is this possible to add #text_filter for that newly created column using mygrid.attachHeader or some other method?



Thanks


Unfortunately its impossible to insert #text_filter into the recently added column. By you can insert custom input and implement custom search with filterBy() method:


function insertColumn(){
index=0;
mygrid.insertColumn(index,“New Column”,“ed”,150,“str”);
mygrid.hdr.rows[2].cells[index].innerHTML=""
mygrid.hdr.rows[2].onclick=function(e){ (e||event).cancelBubble=true; }
}
function customFilter(index){
var val=document.getElementById(“filter”).value;
mygrid.filterBy(index,val);
return true;
}