【解决办法】EasyUI DataGrid无数据时不显示滚动条有关问题
【解决方法】EasyUI DataGrid无数据时不显示滚动条问题
在dataGrid的定义中添加如下代码:
JavaScript Code
2 3 4 5 6 7 8 9 10 11 |
onLoadSuccess : function (data) {
if (data.total == 0) { $('#dg').datagrid('insertRow', { row : {} }); $("tr[datagrid-row-index='0']").css({ "visibility" : "hidden" }); } } |