首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >jqGrid出现问题,用作对话模式弹出窗口

jqGrid出现问题,用作对话模式弹出窗口
EN

Stack Overflow用户
提问于 2016-02-20 02:21:23
回答 1查看 221关注 0票数 0

我已经设计了jqGrid,jqGrid显示为带有警告标志的模式弹出窗口,为什么要这样做?我不想让它成为Modal对话框。屏幕截图已附上,感谢您的帮助。

下面是我的代码:

代码语言:javascript
运行
复制
<script src="~/Scripts/jquery.jqGrid.src.js"></script>
<script src="~/Scripts/i18n/grid.locale-en.js"></script>

代码语言:javascript
运行
复制
$(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});
});

代码语言:javascript
运行
复制
<table id="grid2"></table>
<div id="pager"></div>
EN

回答 1

Stack Overflow用户

发布于 2016-02-24 01:54:16

只是需要更多的信息来给出一些选择。何时会打开警告弹出窗口?弹出窗口初始化在jquery代码中的什么位置?你初始化弹出窗口了吗?弹出的html代码块在哪里?在哪种情况下将打开警告弹出窗口?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35512217

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档