我已经设计了jqGrid,jqGrid显示为带有警告标志的模式弹出窗口,为什么要这样做?我不想让它成为Modal对话框。屏幕截图已附上,感谢您的帮助。
下面是我的代码:
<script src="~/Scripts/jquery.jqGrid.src.js"></script>
<script src="~/Scripts/i18n/grid.locale-en.js"></script>
和
$(function () {
jQuery("#grid2").jqGrid({
data: POnbrsDetails,
datatype: "local",
colNames: ['PO_NBR', 'FY', 'LN', 'FOA', 'PROJ_ID', 'SCR_TPY', 'Encum_Amt', 'Paid', 'Balance'],
colModel: [
{ name: 'PO_Nbr', index: 'PO_Nbr', width: 100, align: "center", },
{ name: 'FY', index: 'FY', width: 100, align: "left" },
{ name: 'LN', index: 'LN', width: 100, align: "center" },
{ name: 'FOA', index: 'FOA', width: 120, align: "right" },
{ name: 'PROJ_ID', index: 'Proj_ID', width: 100, align: "center" },
{ name: 'SCR_Type', index: 'Srce_Type', width: 100 },
{ name: 'Encum_Amt', index: 'Encum_Amt', width: 100, align: "center", summaryType: 'sum' },
{ name: 'Paid', index: 'Paid', width: 100, summaryType: 'sum' },
{ name: 'Balance', index: 'Balance', width: 100, summaryType: 'sum' }
],
rowNum: 10,
rowList: [10, 20, 30],
height: 'auto',
pager: '#pager',
viewrecords: true,
sortorder: "desc",
caption: "SWIFT NSME",
grouping: true,
groupingView: {
groupField: ['PO_Nbr'],
groupColumnShow: [true],
groupCollapse: false,
groupSummary: [true],
showSummaryOnHide: true,
groupDataSorted: true,
},
footerrow: true,
userDataOnFooter: true
});
jQuery("#grid2").jqGrid('navGrid','#pager2',{edit:false,add:false,del:false});
});
和
<table id="grid2"></table>
<div id="pager"></div>
发布于 2016-02-24 01:54:16
只是需要更多的信息来给出一些选择。何时会打开警告弹出窗口?弹出窗口初始化在jquery代码中的什么位置?你初始化弹出窗口了吗?弹出的html代码块在哪里?在哪种情况下将打开警告弹出窗口?
https://stackoverflow.com/questions/35512217
复制相似问题