javascript error using enableBlockSelection

I think I’m including all the relevant .js files, but I keep getting javascript errors when using the enableBlockSelection(true) method. In FF, I receive a ‘RightBottom is undefined’ error on line 22 of dhtmlxgrid_selection.js. In IE I receive a “_cellIndex is null or not an object” error. Incidentally, the column sorting functionality also appears broken. Below is my initialization code for the dhtmlxgrid object.



mygrid = new dhtmlXGridObject(‘gridbox’);

mygrid.csv.cell = “|”;

mygrid.setSkin(“light”);

mygrid.imgURL = “dhtmlxSuite/dhtmlxGrid/codebase/imgs/”;

mygrid.setHeader(“D,D N,Yr,M,T,Dd,Cd”);

mygrid.setInitWidthsP(",,5,5,10,10,10");

mygrid.setColAlign(“left,left,center,center,left,center,center”);

mygrid.setColTypes(“link,ro,ro,ro,ro,ro,ro”);

mygrid.setColSorting(“str,str,int,int,str,str,str”);

mygrid.forceLabelSelection(true);

mygrid.enableAutoHeight(true, “400”);

mygrid.enableTooltips(“false,false,true,true,true,false,false”);

mygrid.enableBlockSelection(true);

mygrid.init();

mygrid.load("…/search-docs.pl?output=csv&rowcount=20&query=" + query.value, “csv”);

According to error description you have all necessary includes, but somehow incorrect position calculated during row selection.
The same code as used in your case - works correctly locally ( working sample sent by email )

In common case problem can be caused by non-unique ID rows or invalid row ID value ( such as 0,false,null )

If problem still occurs - please provide a sample of used CSV data ( you can send it directly to support@dhtmlx.com )