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

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

1207222859.zip (7.24 KB)