Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/445.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 尝试编辑导出的excel工作表Dojo.grid.enhancedGrid中的列宽_Javascript_Dojo - Fatal编程技术网

Javascript 尝试编辑导出的excel工作表Dojo.grid.enhancedGrid中的列宽

Javascript 尝试编辑导出的excel工作表Dojo.grid.enhancedGrid中的列宽,javascript,dojo,Javascript,Dojo,我试图在dojox.grid.enhancedGrid.plugins.Exporter中增加导出Excel工作表的宽度,但似乎在文档中找不到此类信息 这是我试图编辑的网格的代码 var tableGrid = new EnhancedGrid({ id: "reportData", structure: layout, autoWidth: true, autoHeight: true, noDataMessage:"No data found",

我试图在
dojox.grid.enhancedGrid.plugins.Exporter
中增加导出Excel工作表的宽度,但似乎在文档中找不到此类信息

这是我试图编辑的网格的代码

var tableGrid = new EnhancedGrid({
    id: "reportData",
    structure: layout,
    autoWidth: true,
    autoHeight: true,
    noDataMessage:"No data found",
    plugins: {
        printer: true,
        exporter: true,
        pagination: {
            pageSizes: ["10", "50", "100", "All"],
            defaultPageSize: 50,
            description: true,
            sizeSwitch: true,
            pageStepper: true,
            gotoButton: true,
            maxPageStep: 4,
            position: "top"
        }
    }
},this.ReportData).startup();

表格单元格的宽度可以通过网格布局进行管理,如下所示:

var layoutMP = [[
        {name:"Field1", field: "fieldName",'width': '150px'},
        {name:"Field2", field: "fieldname2",'width': '100px'},
        {name:"Field3", etc....}
        ]];
这将由导出添加