我需要一個選項來隱藏dojox.grid.DataGrid網格的標題。 沒有找到任何內容。 我很感激任何信息!dojox.grid.DataGrid隱藏/禁用網格標題
1
A
回答
1
您可以使用CSS:
.dojoxGrid-header {display:none; }
該解決方案是取自: http://dojotoolkit.org/reference-guide/dojox/grid/DataGrid.html#hiding-the-headers-of-a-grid
4
我在道場1.6使用(和因爲道場1.3大概作品)
#myGrid .dojoxGridHeader { display:none; }
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'的網格結構來說明你。
相關問題
- 1. 在jqgrid中隱藏子網格標題
- 2. 隱藏ExtJS網格列標題
- 3. Vaadin 8隱藏網格標題
- 4. 禁用的按鈕隱藏標題
- 5. 在ShieldUI網格中隱藏標題標題
- 6. 禁用,不隱藏標籤
- 7. 如何禁用dojox.grid.DataGrid
- 8. 隱藏網格列
- 9. pyqt4網頁隱藏窗口標題欄
- 10. iTerm2 - 隱藏拆分窗格標題欄?
- 11. 隱藏標題欄
- 12. 隱藏動態infragistics網格中的列並更新標題
- 13. Fullcalendar - 在網格標題中隱藏日期
- 14. Quicktime標誌!它可以隱藏/禁用?
- 15. jqgrid隱藏的子網格
- 16. 隱藏Kendo UI網格toobar
- 17. WPF隱藏網格列
- 18. 隱藏網格中的列
- 19. XAML C#隱藏網格行
- 20. 隱藏表格行問題
- 21. 使用UI網格動畫隱藏
- 22. 使用ESC鍵隱藏網格
- 23. UITableView隱藏的標題?
- 24. 隱藏標題若跌破
- 25. Drupal:隱藏節點標題
- 26. QDockWidget隱藏標題欄
- 27. 隱藏標題文字(Wordpress)
- 28. 從UINavigationBar隱藏標題?
- 29. 永久隱藏標題欄
- 30. 隱藏TabLayoutPanel或TabPanel標題
謝謝,這應該在dojo文檔中提到:-) – 2012-03-16 09:20:23