2011-05-27 82 views

回答

4

我在道場1.6使用(和因爲道場1.3大概作品)

#myGrid .dojoxGridHeader { display:none; } 
+0

謝謝,這應該在dojo文檔中提到:-) – 2012-03-16 09:20:23

0

ü可以在數據網格的postrender連接。然後找到創建的headerGrid元素 ,然後將樣式顯示設置爲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"; 
          }); 
0

我建議切換到使用new and improved dgrid而不是datagrid,這是好多了!

隱藏標題的設置是屬性'showHeader',它是一個布爾值。

看看這個dgrid tutorial,通過定義包括'showHeader'的網格結構來說明你。