setting header filter with attachHeader method

Hello,



I am using the dhtmlxGridObject to display rows from a table and would like to add the filter and combo box filter used in one of your examples with the attachHeader method. However, the additional header does not display a text box only the text #text_filter. The code I am using to render the grid is as follows:



var mygrid;

    mygrid = new dhtmlXGridObject(“employeeGrid”);

    mygrid.setImagePath(“dhtmlxSuite/dhtmlxGrid/codebase/imgs/”);

    mygrid.setEditable(true);

    mygrid.setHeader(“Full Name,Profile Id,Start Date,End Date”);

    mygrid.setInitWidths(",,,");

    mygrid.setColAlign(“left,left,right,right”);

    mygrid.setSkin(“modern”);

    mygrid.setColTypes(“co,ed,txt,txt”);

    mygrid.enableResizing(“true,true,true,true”);

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

    mygrid.init();

    mygrid.loadXML(“employees.jsp”);





Am I using the attachHeader method correctly? Or am I missing any code neccessary to display the filter?





Mike

Am I using the attachHeader method correctly?
yes, the code correct, it doesn’t require any additional commands to init filters

>>does not display a text box only the text #text_filter
You have miss dhtmlxgrid_filter.js file, without it “markers” in header will not be converted to actual inputs.

Thank you. Adding the dhtmlxgrid_filter.js file worked great.