row filter


what is the error in this code



error show object doesn’t support this property or method

























Itenary Code :




itenary Name :













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);

            }

        }


Such error occurs when you doesn’t attach necessary file


1) Check executing what method returns this error


2) Find this method here dhtmlx.com/docs/products/dhtmlxG … grid_api_a and see what file you need to include to use this method


Probably issue is here: