Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by lalit on Jun 24, 2009 05:29
open dhtmlx forum
hi , i am getting error in getFilterElement (0) . my sample code as :View.prototype.initLayout = funtion () {  ...

hi ,
i am getting error in getFilterElement (0) . my sample code as :

View.prototype.initLayout = funtion () {
    this.mygrid = new dhtmlXGridObject('gridbox_tab1');
    this.createGrid ();
   this.init ();
}

View.prototype.init = function () {
.............
.................
     var combo = me.mygrid.getFilterElement (0);
............
.........
}

View.prototype.createGrid = function () {
    var me = this;
    me.mygrid.setImagePath("../dhtmlx/dhtmlxGrid/codebase/imgs/");
    me.mygrid.setHeader("IPAddress,NodeName,Description");
    me.mygrid.setColAlign("center,center,left");
    me.mygrid.attachHeader("#select_filter_strict,#select_filter_strict,#select_filter_strict");
    me.mygrid.setInitWidths("130,130,400");
    me.mygrid.setColTypes("ro,ro,ro");
    me.mygrid.setColSorting("str,str,str");
    me.mygrid.setSkin("light");
    me.mygrid.init();
}
thanks
lalit gera
Answer posted by Alex (support) on Jun 24, 2009 06:12

hello,

the code looks correct

which grid version do you use ? getFilterElement is provided since build 90226.