Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by eddie on Oct 03, 2008 09:30
open dhtmlx forum
dhtmlx grid search box

ok the text boxes appear but when a enter some text nothing happens, looks like its not doing any search against the grid data, any ideas?

here is the code

<script src="dhtmlxcommon.js"></script>
<script src="dhtmlxgrid.js"></script>
<script src="dhtmlxgridcell.js"></script>
<script src="dhtmlxgrid_filter.js"></script>

<script>
var mygrid;
function doInitGrid(){
    mygrid = new dhtmlXGridObject('mygrid_container');
    mygrid.setImagePath("imgs/");
    mygrid.setHeader("Playwright1,Playwright2,EnglishTitle,OriginalTitle,Synopsis,Women,Men,Translator1,Translator2,Translator3,Contact");
    mygrid.setInitWidths("100,100,100,100,350,70,70,100,100,100,100,100");
    mygrid.setColSorting("str,na,str,na,na,int");
    mygrid.attachHeader("#text_search,,#cspan,#text_search,,#cspan,#cspan,#cspan,#text_search,,#cspan,#cspan,#cspan");
    //mygrid.enableSmartRendering(true);
    mygrid.setColAlign("left,left,left,left,left,right,right,left,left,left,left");
    mygrid.enableMultiline(true);
    mygrid.setSkin("light");
    mygrid.init();
    mygrid.loadXML("getdata.php");
}
</script>
Answer posted by Support on Oct 03, 2008 09:57
The search box just select the row , which match search criteria. If you need to filter dataset you need to use "#text_filter"