Tôi gặp vấn đề tiếp theo sau this post.jqGrid overlay problem
Sau khi tải dữ liệu, lớp phủ màu xám bao gồm mọi thứ trên trang, nhưng dữ liệu lưới. Id div css chịu trách nhiệm cho điều đó là lui_list. Bất kỳ ý tưởng, làm thế nào để giải quyết điều này?
Đó là cách tôi đang chạy jqGrid scirpt:
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#list").jqGrid({
url: '/Ticket/All/',
datatype: 'json',
mtype: 'GET',
colNames: ['Id', 'Hardware', 'Issue', 'IssueDetails', 'RequestedBy', 'AssignedTo', 'Priority', 'State'],
colModel: [
{ name: 'Id', index: 'Id', key: true, width: 100 },
{ name: 'Hardware', index: 'Hardware', width: 100 },
{ name: 'Issue', index: 'Issue', width: 200 },
{ name: 'IssueDetails', index: 'IssueDetails', width: 200 },
{ name: 'RequestedBy', index: 'RequestedBy', width: 150 },
{ name: 'AssignedTo', index: 'AssignedTo', width: 150 },
{ name: 'Priority', index: 'Priority', width: 100 },
{ name: 'State', index: 'State', width: 100}],
pager: jQuery('#pager'),
rowNum: 10,
rowList: [5, 10, 20, 50],
sortname: 'Id',
sortorder: "desc",
viewrecords: true,
imgpath: '/Content/images/',
caption: 'My first grid'
});
});
</script>
<h2>My Grid Data</h2>
<table id="list"></table>
<div id="pager"></div>
Và html tiêu đề:
<link href="/Content/jquery-ui-1.8.5.custom.css" rel="stylesheet" type="text/css" />
<link href="/Content/ui.jgrid.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/Scripts/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/Scripts/jquery-ui-1.8.5.custom.min.js"></script>
<script type="text/javascript" src="/Scripts/grid.locale-en.js" ></script>
<script type="text/javascript" src="/Scripts/jquery.jqGrid.min.js" ></script>
Bất kỳ trợ giúp sẽ được đánh giá cao.
Cảm ơn bạn !! Nó luôn luôn là những việc nhỏ ... – Benny
Wow. Tôi cảm thấy ngu ngốc vì không thấy điều đó. Cảm ơn bạn vì sự giúp đỡ. – JasCav
frickin là một điều khó chịu. không được sử dụng cho tệp .css bị thiếu gây ra lớp phủ màu xám xuất hiện. – Lee