Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Anil on Apr 02, 2008 13:23
open dhtmlx forum
DHTMLXGrid with filter and pagination problems.

Hi,

I'm using DHTMLXGrid with filter - combo as filter, and also use pagination, the filtering option doesn't seem to work properly if i use it along with pagination. What is the right sequence of method calls for this?


    mygrid = new dhtmlXGridObject('gridbox');
    mygrid.setImagePath("../codebase/imgs/");
    mygrid.setHeader("Column1,Column2,Column2,Column4,Column5,Column6, Column7,Column8,Column9,Column10,Column11,Column12,Column13,Column14,Column15,Column16,Column17,Column18");
    mygrid.attachHeader("#combo_filter,,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan");
    mygrid.setInitWidths("150,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100")
    mygrid.setColAlign("left,left,left,right,center,left,center,center,left,left,left,left,left,left,left,left,left,left")
    mygrid.setColTypes("ro,ed,ed,ed,ed,ed,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro");
    mygrid.setColSorting("str,str,date,int,str,str,na,na,str,str,str,str,str,str,str,str,str,str")
    mygrid.init();
    mygrid.enableSmartRendering(true);
    mygrid.setSkin("light")
    mygrid.loadXML("grid.xml");
Answer posted by Support on Apr 03, 2008 04:26
Actully the code snippet which you provides use Smart Rendering, not paging - but code must work correctly, at least it do so with local samples - please check attached one.

Please be sure to use latest dhtmlxgrid_filter.js
Attachments (1)