groupby does not work

<script> mygrid = new dhtmlXGridObject("gridbox"); mygrid.setImagePath("codebase/imgs/"); mygrid.setEditable(false); mygrid.setSkin("light"); mygrid.setHeader("Column 1,Column 2,Column 3,Column 4,Column 5"); mygrid.setInitWidths("*,*,*,*,*"); mygrid.setColTypes("ro,ro,ro,ro,ro"); mygrid.setColAlign("left,left,left,left,left"); mygrid.setColSorting("na,na,na,na,na"); mygrid.enableResizing("true,true,true,true,true"); mygrid.init(); mygrid.load("test2.php"); </script>

Hi all,

above code works perfect but when I add mygrid.groupBy(2);
to the bottom of it, it doesn’t work… WHY?

Hi,
please make sure that your code includes dhtmlxgrid_filter.js.
If issue still occurs for you please specify what is the issue or provide a complete demo where the problem can be reconstructed.

To use groupBy() method you should include dhtmlxgrid_group.js file to your page. Note, this functionality is available in PRO version only.