Hi,
We just recently replaced our dhtmlxgrid 2.6 code with 3.0 and noticed a strange issue with cell selection:
When you select another cell on the same row as the currently selected cell, cell highlighting disappears and row highlighting remains. The newly selected cell does become the active cell, however since we navigate our grids using arrow keys, it gets frustrating not knowing where we are on a certain row.
If you click any cell on a different row, cell highlighting returns.
Here’s my test code – I can confirm it works fine on v2.6:
dhtmlxgrid.html:
<!doctype html>
<html lang="en-us">
<head>
<link rel="stylesheet" type="text/css" href="./dhtmlxGrid-3.0/codebase/dhtmlxgrid.css" />
<script src="./dhtmlxGrid-3.0/codebase/dhtmlxcommon.js" language="javascript"></script>
<script src="./dhtmlxGrid-3.0/codebase/dhtmlxgrid.js" language="javascript"></script>
<script src="./dhtmlxGrid-3.0/codebase/dhtmlxgridcell.js" language="javascript"></script>
</head>
<body>
<h4>dhtmlxgrid test</h4>
<div id="testgrid" style="width:900px; height: 200px;"></div>
<script language="javascript">
testgrid = new dhtmlXGridObject('testgrid');
testgrid.setImagePath('./dhtmlxGrid-3.0/codebase/imgs/');
testgrid.init();
testgrid.setSkin('dhx_skyblue');
testgrid.loadXML('./dhtmlxgrid.xml');
</script>
</body>
</html>
dhtmlxgrid.xml:
<?xml version="1.0" encoding="utf-8"?>
<rows>
<head>
<column type="ed" sort="str" width="140" align="center">Col1</column>
<column type="ed" sort="str" width="*" align="center">Col2</column>
<column type="ed" sort="str" width="86" align="center">Col3</column>
<column type="ed" sort="str" width="60" align="center">Col4</column>
<column type="ed" sort="str" width="65" align="center">Col5</column>
<settings>
<colwidth>px</colwidth>
</settings>
</head>
<row id="0">
<cell></cell>
<cell></cell>
<cell></cell>
<cell></cell>
<cell></cell>
</row>
<row id="1">
<cell></cell>
<cell></cell>
<cell></cell>
<cell></cell>
<cell></cell>
</row>
</rows>