簡體   English   中英

JQGrid-jQuery使用IE9加載數據

[英]JQGrid - JQuery loading data with IE9

我制作了一個JQgrid ,它調用Ajax來獲取加載頁面時的數據。 但是在IE9中,問題在於它不會在加載表單時加載數據,而是當我重新加載頁面時完成相同的過程,並且能夠在網格中看到數據。 IE9或Grid有任何問題嗎?它正在所有其他瀏覽器中顯示。

它顯示沒有數據的空白網格。

我的網格定義如下。

jQuery(document).ready(function(){
               jQuery("#internetusagerecords").jqGrid({
                height:250,
                datatype: 'local',
                colNames:['IP Address','Start Time',
                            <% if (isHttpMacFlowOn){%>
                                'MAC Address',
                            <% } %>
                             'Stop Time','Used Time','Effective Session Time','Downloaded Data','Uploaded Data','Total Transfer'],
                colModel :[ 
                    {name:'ip', index:'ip', sorttype:'text'},
                    {name:'starttime', index:'starttime', sorttype:'int',align:"right"},
                    <% if (isHttpMacFlowOn){ %>
                    {name:'macaddress', index:'macaddress',  sorttype:'text', align:"left"},
                    <% } %>
                    {name:'stoptime', index:'stoptime', sorttype:'int',align:"right"},
                    {name:'usedtime', index:'usedtime',  sorttype:'text', align:"right"},       
                    {name:'effectivesession', index:'effectivesession',sorttype:'date', align:"right"},     
                    {name:'download', index:'download', sorttype:'int',align:"right"},
                    {name:'upload', index:'upload',sorttype:'int',align:"right"},
                    {name:'totaltransfer', index:'totaltransfer',sorttype:'int',align:"right"}],
                pager:jQuery('#internetusagepager'),
                rowNum:10,
                sortname: 'ip',
                autowidth:true,
                sortorder: "asc",
                rowList:[10,20,50,100,200],
                viewrecords: true,
                loadonce:false,
                grouping:true,
                footerrow: true,
                userDataOnFooter: true,
                gridComplete: function call1(){},
                /*
                loadComplete: function(data) {
                    var costsum = jQuery("#records").jqGrid('getCol', 'estimatedcost', true, 'sum');
                    var calldurationsum = jQuery("#records").jqGrid('getCol', 'seconds', true, 'sum');
                    var unitssum = jQuery("#records").jqGrid('getCol', 'units', true, 'sum');
                    jQuery("#records").jqGrid('footerData','set', {starttime: 'Total:', estimatedcost: costsum,seconds: calldurationsum,units: unitssum});
                },
                */
                caption:'Internet Usage Details'
              });
            });

實際上,舊的JQuery包存在問題。 現在可以在JQGrid庫中解決該JQGrid

對於帶有IE9的JQueryJQgird ,我也遇到了相同的問題,現在已解決。

我下載了新程序包並進行了檢查,然后它解決了IE9的問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM