Categories | Question details Back To List | ||
row filter what is the error in this code error show object doesn't support this property or method <script language="javascript" type="text/javascript" src="scripts/dhtmlXCommon.js"></script> <script language="javascript" type="text/javascript" src="scripts/dhtmlxgrid.js"></script> <script language="javascript" type="text/javascript" src="scripts/dhtmlxgridcell.js"></script> <script language="javascript" type="text/javascript" src="scripts/dhtmlXDataProcessor.js"></script> <script language="javascript" type="text/javascript" src="scripts/dhtmlxgrid_excell_sub_row.js"></script> <script language="javascript" type="text/javascript" src="scripts/CommonScript.js"></script> <script language="javascript" type="text/javascript" src="Scripts/dhtmlxgrid_filter.js"></script> <div id="left123" style="float:left; width:275px"> Itenary Code : <input type="text" id="txtitinerarycode" /> <br /> itenary Name :<span> <input type="text" id="txtitineraryname" /> </span> </div> <script> mygrid = new dhtmlXGridObject('gridbox'); var _js_prefix="../scripts/"; mygrid.setSkin("xp"); mygrid.init(); mygrid.enableAutoHeight(true); mygrid.enableAutoWidth(true);//SearchItinerary mygrid.imgURL=locationpath+'/Images/imgs/'; mygrid.loadXML(locationpath+"/LoadData.aspx?ICode=All&PageName=SearchItinerary" +'&Mode='+strSaveMethod); myDataProcessor = new dataProcessor(locationpath+"/SaveData.aspx?ICode="+reportId+"&PageName=Media"); // mygrid.setOnRowDblClickedHandler(doOndblClick); myDataProcessor.setVerificator(1) myDataProcessor.setVerificator(3,checkIfNotZero) myDataProcessor.setUpdateMode("off");//available values: cell (default), row, off //mygrid.setOnKeyPressed(onKeyPressed); mygrid.setOnRowDblClickedHandler(doOndblClick); myDataProcessor.init(mygrid); function doFilter(){ var _stritcode=document.getElementById("txtitinerarycode").value; var _stritname=document.getElementById("txtitineraryname").value if(_stritcode.length>1) { alert(_stritcode); mygrid.filterBy(1,document.getElementById("txtitinerarycode").value); } else if(_stritname.length>1) { mygrid.filterBy(1,document.getElementById("txtitineraryname").value); } } Answer posted by dhxSupport on Mar 05, 2009 00:53 Such error occurs when you doesn't attach necessary file 1) Check executing what method returns this error 2) Find this method here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/alpha.html#grid_api_a and see what file you need to include to use this method Probably issue is here: <script language="javascript" type="text/javascript" src="Scripts/dhtmlxgrid_filter.js"></script> |