Dojo EnhancedGrid CoulmnSelector复选框样式

时间:2012-08-14 05:15:59

标签: dojo dojox.grid.datagrid

我用于创建dojo增强型datagrid的Javascript代码是:

grid = new dojox.grid.EnhancedGrid({
                            store: store,
                            rowSelector: 'auto',
                            **plugins: {indirectSelection: {headerSelector:true, width:'auto', styles:"text-align: center;"}},**
                            structure: [
                                          {field: 'msname', width: 'auto', name: 'Milestone'},
                                          {field: 'description', width: 'auto', name: 'Description'},
                                          {field: 'msorder', width: 'auto', name: 'Milestone Order'},
                                          {field: 'eventtype', width: 'auto', name: 'Event Type'},
                                          {field: 'isngrp', width: 'auto', name: 'Is NGRP?'},
                                          {field: 'eventAttribute', width: 'auto', name: 'Event Attribute(s)'}
                                      ]
                        },"grid");
                        grid.startup();

但是复选框的样式不合适。复选框内有一个小方块。知道如何解决它。截图是:

Enhanced Grid checkbox styling

1 个答案:

答案 0 :(得分:0)

我错过了能够包含在我页面正文中的enhancedgrid.css。它现在很好。