easyui datagrid 不显示第一页数据

问题描述

easyui datagrid 不显示第一页数据

问个很白的问题。。别笑话我。。。
打算页面打开后,就直接显示数据,
但是现在必须点一下分页栏上的刷新才显示。倒也显示页数和记录数,请教这是怎么回事啊?

 <script type="text/javascript">
        $(function () {
            var request = new Object();
            Request = GetRequest();
            var db = Request['DB'];
            var shp_id = Request['shp_id'];
            $('#dg').datagrid({
                border: true,
                url:  "dm_sku.ashx?db=" + db + "&shp_id=" + shp_id ,
                columns: [[
                    { title: '店铺编号', field: 'shp_id', width: 80 },
                    { title: '款式编号', field: 'fas_id', width: 80 },
                    { title: '色号', field: 'col_id', width: 40 },
                    { title: '颜色', field: 'col_name', width: 100 },
                    { title: '库存码数', field: 'dd', width: 80 },
                    { title: '年度', field: 'fas_year', width: 50 },
                    { title: '季节', field: 'fas_season', width: 50 }
                ]],
                fitColumns: true,
                singleSelect: true,
                pagination: true,
                loadMsg: '数据加载中,请稍后...',
                striped: true,
                pageSize: 20
            });
            var p = $('#dg').datagrid('getPager');
            $(p).pagination({
                beforePageText: '第',
                afterPageText: '页    共 {pages} 页',
                displayMsg: '当前显示 {from} - {to} 条记录   共 {total} 条记录'
            });
        });
    </script>

解决方案

对不起,代码整理了下

解决方案二:

LZ梳理一下啊 这要怎么看。。。。。

时间: 2024-08-31 12:41:10

easyui datagrid 不显示第一页数据的相关文章

分页-easyui datagrid 不显示第一页数据

问题描述 easyui datagrid 不显示第一页数据 打算页面打开后,就直接显示数据, 但是现在必须点一下分页栏上的刷新才显示.倒也显示页数和记录数,请教这是怎么回事啊? <script type="text/javascript"> $(function () { var request = new Object(); Request = GetRequest(); var db = Request['DB']; var shp_id = Request['shp_

easyui-在使用EasyUI datagrid去得到后台json数据时,前面页面显示不出来,这是为啥么呢?

问题描述 在使用EasyUI datagrid去得到后台json数据时,前面页面显示不出来,这是为啥么呢? 解决方案 在datagrid的URL的路径前面加${pageContext.request.contextPath}这个试试. 解决方案二: 可以多用浏览器开发工具看ajax发送的请求最终返回的是什么内容..如果不符合datagrid需要的结构或者发生错误都不会显示数据

毕业设计-ssh2 easyui datagrid不显示问题,高手来

问题描述 ssh2 easyui datagrid不显示问题,高手来 我做毕业设计用的是easyui的datagrid,比如要添加一本书,全部字段输入的话可以显示出来,如果少输入一个字段,就显示不出来,请问谁知道怎么解决? 解决方案 你添加时应该是ajax回发服务器判断成再调用appendRow到datagrid?f12打开浏览器开发工具看是不是服务器端报错了 解决方案二: 没有用ajax,登录成功直接显示的,没用spring只用hibernate和struts2的时候是可以空着字段添加显示的,

java类的问题-java分页只显示第一页,其他也不显示

问题描述 java分页只显示第一页,其他也不显示 java查出来的数据有多页第一页显示,其他页点击什么都不显示了,统计出来的所有数据是对的,但是就是不能查看. 解决方案 慢慢跟,step1: 数据传到后台没 step2: sql可以正确执行么? step3: 执行结果可以正确接收么? step4:传回前端没? step5: js等脚本正确么? 这些问题都会导致你现在的现实问题.最好的办法一步步跟. 解决方案二: 也许是页码传递有问题 解决方案三: 看看后台有没有得到前台传过去的pageNo(当前

httpclient jaaj-httpclient 只能抽取第一页数据

问题描述 httpclient 只能抽取第一页数据 HttpClient client = HttpClients.createDefault(); HttpGet get = new HttpGet("http://qichacha.com/search_hangye?industryCode=A&industryorder=0&p=1"); HttpResponse response = client.execute(get); HttpEntity entity

前端框架-easyui datagrid 的显示问题

问题描述 easyui datagrid 的显示问题 如图 如何删除多余的长度 解决方案 datagrid配置fitColumns为true <table class="easyui-datagrid" data-options="fitColumns:true 解决方案二: Easyui Datagrid的Rownumber行号显示问题[解决方法]EasyUI DataGrid无数据时不显示滚动条问题easyui datagrid遇到的问题

分页只能显示第一页记录看了一天了,没找出错

问题描述 以下是留言板的主页面中对留言进行操作的内容,但是分页不正常,哪位高手指点以下啊<%@language="vbscript"%><%session("currentposition")="留言列表"%><!--#includefile="top.asp"--><%dimrs,conn,currentpage'使用server对象的createobject方法建立一个记录集对象S

ASP.NET 2.0快速入门(2):ASP.NET 2.0 数据绑定的例子点击more info 都显示第一个数据

问题描述 au_idau_lnameau_fnamecitystatezipdetails172-32-1176WhiteJohnsonMenloParkCA94025moreinfo213-46-8915GreenMarjorieOaklandCA94618moreinfo238-95-7766CarsonCherylBerkeleyCA94705moreinfo267-41-2394O'LearyMichaelSanJoseCA95128moreinfo274-80-9391Straight

【实验】easyui datagrid与aspnet gridview 绑定数据效率问题

问题描述 实验环境:1.开发工具:vs20082.其他组件:jquerydatagrid(easyui)gridview(aspnet)3.1000条数据绑定数据库源:publicclassDataSource{publicstaticDataTableGetData(){DataTabledt=BuildTable();for(inti=0;i<1000;i++){DataRowdr=dt.NewRow();dr["productid"]="FI-SW-01"