IE 10 - dhtmlxGrid to Accordion - setColumnHidden

Hi,

I think I may have found an issue with the grid column Headers, they do not hide when attached to an accordion when running IE 10.

I tested with the dhtmlx “Attach dhtmlxGrid to Accordion” sample by adding grid.setColumnHidden(0, true) prior to loading.

http://www.dhtmlx.com/docs/products/dhtmlxAccordion/samples/04_components/04_grid.html

<script>
var dhxAccord;
function init(){
	dhxAccord = new dhtmlXAccordion("accordObj");
	dhxAccord.addItem("a1", "dhtmlxGrid");
	dhxAccord.addItem("a2", "b");
	dhxAccord.addItem("a3", "c");
	dhxAccord.openItem("a1");
	//
	var grid = dhxAccord.cells("a1").attachGrid();
	grid.setSkin("dhx_skyblue");
	grid.setImagePath("../../../dhtmlxGrid/codebase/imgs/");
	grid.setColumnHidden(0, true);
	grid.loadXML("../../../dhtmlxWindows/samples/common/grid.xml");
}
</script>

Is it ok to ask if you can recommend a workaround?

Everything else looks really great. Thank you very much,

  • Mike

When the grid is attached to an accordion, using IE 10, the column resizes the other columns all at the same time as well.

  • Mike

Please, try to hide your column after the data is loaded to a grid.
replace:

grid.setColumnHidden(0, true); grid.loadXML("../../../dhtmlxWindows/samples/common/grid.xml");
with:

grid.loadXML("../../../dhtmlxWindows/samples/common/grid.xml",function(){ grid.setColumnHidden(0, true); });

Hi and thank you, the grid column always hides as expected but this is regarding

the grid column Headers


Unfortunately the issue cannot be reproduced locally.
Please, open ticket at support.dhtmlx.com and provide us with a complete demo, where the issue can be reproduced so we can provide you a proper solution.

Thank you, we’re up to date now and working.

  • Mike