English 中文(简体)
jqGrid pager 停工
原标题:jqGrid pager stopped working
  • 时间:2011-09-29 14:16:57
  •  标签:
  • jqgrid
  • pager

我在最近几天里对 j干4.1.2进行了实验,越来越多的人以这种方式建立了功能。 有时,页数停止工作,我不能说错了。 当电网负荷时,我可以看到第一页的罚款数据,但当我转换网页时,数据仍然不变。 只有反面改动。 如果我选择了100个减员名单,我就可以看到所有数据。

http://www.trirand.com/blog/jqgrid/jqgrid.html 一切似乎都一样,但我承认我不是最好的 Java典。 这里的违法法典:

<script type="text/javascript" language="javascript"> 
jQuery(document).ready(function() {
    jQuery("#testgrid").jqGrid({
        url: /Main/DynamicGridData/ ,
        mtype: POST ,
        datatype: json ,
        colNames: [
             CustomerId ,
             RecordStartUtc ,
             RecordEndUtc ,
             Id ,
             Name ,
             Status ,
             AudioTitle ,
             ServerId ,
             ServerName ,
             ApplicationInstanceId ,
             ApplicationInstanceName ,
             ApplicationName ,
             ChannelId ,
             ChannelFullName ,
        ],
        colModel: [
            { name:  CustomerId , index:  CustomerId , width: 0, align:  left  },
            { name:  RecordStartUtc , index:  RecordStartUtc , width: 0, align:  left  },
            { name:  RecordEndUtc , index:  RecordEndUtc , width: 0, align:  left  },
            { name:  Id , index:  Id , width: 0, align:  left  },
            { name:  Name , index:  Name , width: 0, align:  left  },
            { name:  Status , index:  Status , width: 0, align:  left  },
            { name:  AudioTitle , index:  AudioTitle , width: 0, align:  left  },
            { name:  ServerId , index:  ServerId , width: 0, align:  left  },
            { name:  ServerName , index:  ServerName , width: 0, align:  left  },
            { name:  ApplicationInstanceId , index:  ApplicationInstanceId , width: 0, align:  left  },
            { name:  ApplicationInstanceName , index:  ApplicationInstanceName , width: 0, align:  left  },
            { name:  ApplicationName , index:  ApplicationName , width: 0, align:  left  },
            { name:  ChannelId , index:  ChannelId , width: 0, align:  left  },
            { name:  ChannelFullName , index:  ChannelFullName , width: 0, align:  left  },
        ],
        pager: #gridpager ,
        rowNum:25,
        rowList:[25,50,75,100],
        sortname: Id ,
        sortorder: Asc ,
        viewrecords:true,
        imgpath: /Content/themes/base/images ,
        caption: Test Grid ,
        autowidth:true,
        width: 100% ,
        height: 100% ,
        hoverrows:false
    });
    jQuery("#testgrid").jqGrid(
         navGrid , #gridpager ,
        {view:true,edit:false,add:false,del:false},{},{},{},
        {multipleSearch:true,multipleGroup:false},{closeOnEscape:true}
    );
});

</script>

<table id="testgrid"></table>
<div id="gridpager"></div>

Thanks in advance, // Linus

最佳回答

Not in a place to test your code but try changing your "sortorder" value Asc to all lower case.

如果你执行服务器配制,则添加这一财产:

装载:伪造;

参看:

如果请求进入第二页,则对你的服务器侧码进行测试!

问题回答

暂无回答




相关问题
Retrieving original row data from jqGrid

It is possible to use the getRowData method to retrieve the current of a cell but this retrieves the current cell content rather than the original data before it went through the formatter. How do I ...

How to programmatically select top row of JQGrid?

How does one programmatically select the top row of a JQGrid. I want to have the top row already selected when it is opened on the page. My grid is sorted by a descriptive column so the first row s id ...

Blank when NaN in jqGrid cells

How to set blank instead of NaN in jqGrid cells ? Using formatter ? Is there an example?

complete jqGrid?

Please, can anyone tell me how to use jqGrid? I want to do edit, add & delete functionality. Also I want to show an image in the grid Please tell me, what can I do, and how can I do?

jqGrid: is there an event for when columns are reordered?

I m using the column reordering feature in jqGrid $grid = jQuery("#list").jqGrid({ sortable:true, ... }); Is there an event that fires after columns are re-ordered? If there is, I can t see ...

Wrapping Text lines in JqGrid

Can you get lines of text to wrap in JqGrid? I have had a look round but i can t find anything.

using jqgrid style for usual Table in asp.net mvc

I d prefer using Table and td instead of JqGrid but i like JqGrid styles. has anyone used jqgrid style for usual Grid of asp.net MVC(i mean Table and td) before?

热门标签