Categories | Question details Back To List | ||
TreeSorting not working I am trying to display data in a treegrid with sorting option. Its not working properly. what else i can do to fix this issue. mygrid = new dhtmlXGridObject('gridbox'); mygrid.imgURL = "customcode/dhtmlxgrid/codebase/imgs/icons_greenfolders/"; mygrid.setHeader("Book,Amount"); mygrid.setInitWidths("330,110,120,90"); mygrid.setColAlign("left,right,right,right"); mygrid.setColTypes("tree,ron,ron,ron"); mygrid.enableTreeCellEdit(false); mygrid.enableResizing("false,false,false,false"); mygrid.setColSorting("str,int,int,int"); mygrid.enableAutoWidth(true); mygrid.objBox.style.overflowX = "hidden"; mygrid.init(); mygrid.setSkin("light"); mygrid.loadXML("customcode/dhtmlxgrid/test.php"); Answer posted by dhxSupport on Jul 21, 2009 09:35 >>Its not working properly Could you please describe who doesn't filtering work? By default filtering in the TreeGrid affects only the last level of hierarchy (leaf items). This mode can be enabled like this: treegrid.setFilrationLevel(-1); Level of filtration can be changed again in the following way: treegrid.setFiltrationLevel(1); // upmost level has index 0 After this command, filtering uses data from different levels of hierarchy It is possible to force the TreeGrid to filter data on all levels of hierarchy at the same time in the following way: treegrid.setFiltrationLevel(-2); To filter by upper level items only you can use: treegrid.enableFiltrationMode(-1,true); |