setColumnHidden() doesn't work in IE8

Hello,

i’ve a grid with 14 columns (0…13) and column 8, 9, and 10 shouldn’t be visible. So i call 3 times:
testgrid.setColumnHidden(8, true);
testgrid.setColumnHidden(9, true);
testgrid.setColumnHidden(10, true);

In Firefox 3.x and 4.x it works fine and correct but in IE8 indeed the data columns are not visible but the header columns yet.

testgrid.setColumnsVisibility(true,true,true,true,true,true,true,true,false,false,false,true,true,true); doesn’t work too.

Regards, Carsten

Unfortunately issue can’t be reconstructed locally.
If issue still occurs for you - please provide any kind of sample or demo link where it can be reconstructed.

I am facing the same issue it works in IE9 and firefox but not in IE8

Unfortunately issue can’t be reconstructed locally.
If issue still occurs for you - please provide any kind of sample or demo link where it can be reconstructed.

Set browser mode and document mode to IE8. In other modes you get the described problems.

Unfortunately the issue cannot be reconstructed locally.
The grid hides columns well in IE8 (IE8 mode, IE8 compatibility mode).
If issue still occurs - please, provide a complete demo.

Sorry to bring this up again - I experience a similar behavior in IE 9 (standard vs. compatibility browser mode - not document mode).

The headers are not hidden in compat mode - see screenshots. Worth to mention that the page is located on a local intranet; the compat mode setting in IE8+ is set to on by default.



Sorry, forgot the example.
test.zip (2.21 KB)

The combination of modes “ie8-compatibility : ie8-standard” can’t be set by user, it can be set directly or enforced through meta tag. Native compatibility mode looks as “IE8-compatibility : quirks”

Anyway, try to add one of two next lines after dhtmlxcommon.js

if (_isIE) _isIE = 8;

or

if (_isIE) _isIE = true;

Works on IE9 only if

if (_isIE) _isIE = 8;

is specified.

With IE8 it’s problematic when we use X-UA-Compatible to bypass the default “display intranet sites in compatibility view” option

<meta http-equiv="X-UA-Compatible" content="IE=edge"> 

The problem is in javascript, navigator.appVersion identifies itself as “MSIE 7.0 blablabla”. Maybe we need to add something like (look at document.documentMode)

if ( navigator.appVersion.indexOf("MSIE 7.0")!= -1 && document.compatMode != "BackCompat" && document.documentMode && document.documentMode >=8 ) _isIE=8;