我需要一个选项来隐藏标题从dojox.grid.DataGrid网格。什么也没找到。感谢您提供的任何信息!
发布于 2011-09-30 22:30:42
我在dojo 1.6中使用(可能从dojo 1.3起就可以使用)
#myGrid .dojoxGridHeader { display:none; }发布于 2011-07-14 16:27:10
您可以使用CSS:
.dojoxGrid-header { display:none;}
此解决方案来自:http://dojotoolkit.org/reference-guide/dojox/grid/DataGrid.html#hiding-the-headers-of-a-grid
发布于 2012-08-10 07:37:05
你可以在数据网格的postrender连接。然后找到创建的headerGrid元素,然后将style display设置为none。
//workaround the grid calls postrender after
//the component is at the dom.
//so then i can change the style to reset the header to invisible
dojo.connect(grid,"postrender",function(){
var headerGrid =this.domNode.firstElementChild;
headerGrid.style.display="none";
});https://stackoverflow.com/questions/6152220
复制相似问题