I want to add simple text filters to my columns: I saw several methods and responses in docs and knowlege base for grid filtering. I've tried several methods and have run into errors each way:
1.
.....
mygrid.makeFilter("textobject",0);
mygrid.loadXML("/static/data/step3.xml")
I get an object does not support this method error on the makeFilter line.2.borrowed from the samples section: mygrid.attachHeader("#rspan,,#rspan,#rspan,#rspan,#rspan,#rspan,#rspan,#rspan,#rspan");
document.getElementById("title_flt").appendChild(document.getElementById("title_flt_box").childNodes[0])
mygrid.setSizes();
mygrid.loadXML("/static/data/step3.xml")function customFilter(){
columnIndex=1;
var tVal = document.getElementById("title_flt").childNodes[0].value.toLowerCase();
//alert(tVal)
mygrid.filterBy(columnIndex,tVal);
}
....I get an "object does not support this method" on the mygrid.filterBy() in customFilter().I would prefer filters built into the header (#2 example) as with the combo header example in your samples, but would like to get any method to work to start!Thanks!
Answer posted by sieglej on Mar 02, 2009 12:39
Needed to include dhtmlxgrid_filter.js. It works now...