Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by eddie on Oct 03, 2008 07:55
open dhtmlx forum
dhtml grid

I am trying to add a search box into the grid but still without any success, i am using the code provided in the documentation but it's not happening for me. i would really appreciate your help



here is the code i am using

<script>
var mygrid;
function doInitGrid(){
mygrid = new dhtmlXGridObject('mygrid_container');
mygrid.setImagePath("imgs/");
mygrid.setHeader("Playwright1,Playwright2,EnglishTitle,Contact");
mygrid.setInitWidths("100,100,100,100,100");
mygrid.attachHeader("Playwright1");
    mygrid.enableSmartRendering(true);
    mygrid.setColSorting("str,na,str,na,na");
    mygrid.enableMultiline(true);
mygrid.setSkin("light");
mygrid.init();
    mygrid.loadXML("getdata.php");
}
</script>
Answer posted by Support on Oct 03, 2008 08:18
If you mean built-in search functionality
- be sure that dhtmlxgrid_filter.js included in your html page
- change attachHeader command to the 
        mygrid.attachHeader("#text_search");
Answer posted by eddie on Oct 03, 2008 08:42
ok the boxes appear but when a enter some text nothing happens, looks like its not doing any search against the grid data, any ideas?
Answer posted by Support on Oct 06, 2008 05:29