Javascript 如何设置Wijgrid的宽度?
用于构造wijgrid的代码:Javascript 如何设置Wijgrid的宽度?,javascript,wijmo,wijgrid,Javascript,Wijmo,Wijgrid,用于构造wijgrid的代码: // Construct the grid $("#wijgridObject").wijgrid({ allowPaging: true, allowSorting: true, pageSize: gridTotalRows, pagerSettings: { position: "bottom" }, allowColMoving: false,
// Construct the grid
$("#wijgridObject").wijgrid({
allowPaging: true,
allowSorting: true,
pageSize: gridTotalRows,
pagerSettings: { position: "bottom" },
allowColMoving: false,
columnResizing: false,
allowColSizing: false,
data: currentLayer.GridObjects,
showFilter: true,
rowStyleFormatter: function (args)
{
...
},
columns: gridColumnGroupings
});
如何设置Wijmo网格的宽度?我的似乎没有自动填充浏览器窗口的宽度
wijmo人是无用途的,没有其他关于将wijgrid的宽度设置为100%的话题
$("#wijgridObject").wijgrid("option", "pageSize", calculateGridHeight());
或
为了得到母公司elment的信息 var width=$(“#parentElement”).get(0).offsetWidth; var height=$(“#parentElement”).get(0).offsetHeight $(“表格”).wijgrid(“设置尺寸”、宽度、高度) 如果要自动设置任何尺寸,请使用“自动”作为宽度或高度
$("#wijgridObject").wijgrid("option", "pageSize", 256);