ssh2 easyui datagrid不显示问题,高手来

我做毕业设计用的是easyui的datagrid,比如要添加一本书,全部字段输入的话可以显示出来,如果少输入一个字段,就显示不出来,请问谁知道怎么解决?

3个回答

你添加时应该是ajax回发服务器判断成再调用appendRow到datagrid?f12打开浏览器开发工具看是不是服务器端报错了

没有用ajax,登录成功直接显示的,没用spring只用hibernate和struts2的时候是可以空着字段添加显示的,三个框架一起用的时候就不行了

这是dao
public Map queryByPage(final Integer page,final Integer rows) {
long total=(Long)this.getHibernateTemplate().find("select count(*) from Books").get(0);
Map map=new HashMap();
map.put("total", total);
List result = getHibernateTemplate().executeFind(
new HibernateCallback() {
public Object doInHibernate(Session session)
throws HibernateException, SQLException {
Query query = session.createQuery("from Books");
query.setFirstResult((page - 1) * rows);
query.setMaxResults(rows);
return query.list();
}
}
);
map.put("rows", result);
return map;
}

这是action
public String list(){
map=booksDao.queryByPage(page, rows);
    return "list";
    }

这是struts2配置
<package name="default" namespace="/" extends="json-default">
<action name="books*" class="booksAction" method="{1}">
<result name="list" type="json">
    <param name="root">map</param>
        </result>
 <result>main.jsp</result>
</action>

这是显示图书列表的片段

<br> $(function() {<br> $(&#39;#dg&#39;).datagrid({<br><br> title:&#39;图书详细信息列表&#39;, <br> iconCls:&#39;icon-search&#39;,//图标 <br> height:355,<br> pagination:true,//显示底部分页栏<br> pageSize:5,//默认每页记录数,pagination参数为true时才有效<br> pageList:[5,10,15], //显示列表记录数的下拉框选项,pagination参数为true时才有效<br> fitColumns:true,//自适应宽度,防止水平滚动<br> striped:true,//自动大小 <br> url:&#39;bookslist&#39;, <br> //sortName: &#39;code&#39;, <br> //sortOrder: &#39;desc&#39;, <br> remoteSort:false,<br> idField:&#39;fldId&#39;, <br> singleSelect:false,//是否单选 <br> pagination:true,//分页控件 <br> rownumbers:true,//行号<br><br> columns:[[<br><br> {field:&#39;id&#39;,title:&#39;编号&#39;,width:50,hidden:true},<br> {field:&#39;name&#39;,title:&#39;名称&#39;,width:100},<br><br> {field:&#39;author&#39;,title:&#39;作者&#39;,width:100},<br> {field:&#39;type&#39;,title:&#39;类型&#39;,width:100},<br><br> {field:&#39;pubcompany&#39;,title:&#39;出版社&#39;,width:150},<br><br> {field:&#39;strDate&#39;,title:&#39;出版日期&#39;,width:200},<br> {field:&#39;price&#39;,title:&#39;押金&#39;,width:50}, <br> {field:&#39;status&#39;,title:&#39;借阅情况&#39;,width:100,<br> formatter: function(value,row,index){<br> if (value==0){<br> return &quot;可借&quot;<br> }<br> }<br> },<br><br> {field:&#39;opr2&#39;,title:&#39;操作&#39;,align:&#39;center&#39;,formatter:function(){<br> return &quot;<a herf='#' style='color:blue;'>修改</a>&quot;;<br> }},<br> {field:&#39;opr&#39;,title:&#39;操作&#39;,align:&#39;center&#39;,formatter:function(){<br> return &quot;<a herf='#' style='color:blue;'>删除</a>&quot;;<br> }}</p>

图片说明

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
jquery easyui datagrid 不显示
我再table中加入class="easyui-datagrid",结果内容就不显示了,是什么原因造成的。特殊说明,我用的不是jsp,是.ftl文件,引用几行代码:[code=html] rn rn rn rn rnrn rnrn[/code]rn在调试工具中显示的是rn[code=html]rnrn rn rn rn rnrn[/code]
easyui datagrid 不显示json数据
过程描述:页面 A输入参数,进入controller进行逻辑处理并生成json数据,然后通过rn MVC返回json数据,并对页面A相关easyui datagrid表格进行数据展示。rn 问题:easyui datagrid不现实数据,且页面不报错,调试能看到json数据。rn 页面代码: rn rn rnrn```rn 测试rn function test()rn rn jq('#tt').datagrid(rn title:'DataGrid - DetailView',rn width:500,rn height:250,rn remoteSort:false,rn singleSelect:true,rn nowrap:false,rn fitColumns:true,rn type:"POST",rn url:'/store/saleout/getjson',rn columns:[[rn field:'product_name',title:'Item ID',width:80,rn field:'numbers',title:'Product ID',width:100,sortable:true,rn field:'price',title:'List Price',width:80,align:'right',sortable:true,rn field:'buyer',title:'Unit Cost',width:80,align:'right',sortable:truern ]]rn rn );rn alert("333");rn rn```rnrnrn 调试显示数据:"rows":["product_name":"土豆","numbers":2,"price":40,"buyer":"A","style":"A","type":"WU","saleoutdate":"2015-3-31"],"total":1rn rn 请教一下:什么原因导致 easyui datagrid数据不显示?不报错,不知道到底从哪里入手,困扰了不短时间,多谢!!rn rn 页面完整代码如下,调试数据截图在附件中。rn ![![图片说明](https://img-ask.csdn.net/upload/201505/31/1433004879_544586.png)图片说明](https://img-ask.csdn.net/upload/201505/31/1433004871_778225.png)rnrnrn```rn rn rn<%@ page language="java" contentType="text/html; charset=utf-8"rn pageEncoding="utf-8"%>rn<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>rn<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>rn<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>rn<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>rn<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>rnrnrnrnrnrn rn saleoutrn rnrn rnrnrnrnrnrnrn rn rn rn rn rn rn 测试rn rn rnrnrn rn rn rn rn 产品名称: rn rn rn rn rn rn 提交rn rn rnrnrnrnrn```rn
Easyui datagrid不显示数据
刚接触easyui,不太熟,根据datagrid的格式拼装了数据,无法显示到datagrid里,但是在jsp里面创建一个var变量就可以显示,求大牛帮忙看下nnJSP页面代码:n```n $(function() n //alert(getParasFromUrl("selectType"));n //alert(getParasFromUrl("objectID"));n //初始化表格内容n $('#dataList').datagrid(n title : 'IP地址详情',n //data:dataGrid,n method : 'post',n singleSelect : true,n height : 370,n fit : true,n fitColumns : true,n striped : true,n collapsible : true,n //url : "/jsp/jcss/IPQueryDetailAction.do?operation=queryIPFromDB",n url : "/InfoMgr/jsp/jcss/IPQueryDetailAction.do?operation=query&selectType="+getParasFromUrl("selectType") + "&objectID=" + getParasFromUrl("objectID"),n sortName : 'IP',n pageSize: 50, //每页显示的记录条数,默认为10n pageList: [30, 50, 100, 200, 300], //分页显示选项n sortOrder : 'asc',n remoteSort : false,n idField : 'ID',n pagination : true, // 显示分页n rownumbers : true, // 显示行号n columns : [ [n field : 'ID', title : '序号', width : 20, sortable : true, halign : 'center',n field : 'IP', title : 'IP', width : 100, sortable : true, halign : 'center',n field : 'HOSTNAME', title : '主机名称', width : 100, sortable : true, halign : 'center',n field : 'GATEWAY', title : '网关', width : 80, sortable : true, halign : 'center',n field : 'USEFOR', title : '用途', width : 120, sortable : true, halign : 'center',n field : 'PROPOSER', title : '申请人', width : 120, sortable : true, halign : 'center',n field : 'CREATEDATE', title : '申请时间', width : 120, sortable : true, halign : 'center',n ] ],n onLoadSuccess : function() n //alert('OK');n //$('#dataList').datagrid('reload');n //$('#dataList').datagrid('clearSelections'); // 一定要加上这一句,要不然datagrid会记住之前的选择状态,删除时会出问题n ,n onDblClickRow: function (rowIndex, rowData) nn ,n onClickRow: function (rowIndex, rowData) nn ,n n );n);n```n后台数据拼装:nnn```n public List getIPSegFromDB(String ID)n System.out.println("call getIPSegFromDB");n List lstIPs = new ArrayList();n n StringBuffer sb = new StringBuffer();n sb.append("\"total\":28,\"rows\":[");n sb.append("\"ID\":\"1\",\"IP\":\"192.168.1.1\",\"HOSTNAME\":\"test\",\"GATEWAY\":\"192.168.1.254\",\"USEFOR\":\"测试\",\"PROPOSER\":\"11\",\"CREATEDATE\":\"2015-11-21\",");n sb.append("\"ID\":\"2\",\"IP\":\"192.168.1.2\",\"HOSTNAME\":\"test\",\"GATEWAY\":\"192.168.1.254\",\"USEFOR\":\"测试\",\"PROPOSER\":\"111\",\"CREATEDATE\":\"2015-11-21\"");n sb.append("]");n n lstIPs.add(sb.toString());n return lstIPs;n n```nn返回json:nnn```n response.getWriter().print(JSONArray.fromObject(qis.getIPSegFromDB(objectID)).toString()); n```nn鼓捣一晚上了没查出问题来,但是按照下面的格式写到jsp页面里,就能显示出来。。。。求解啊。。。nnn```n var dataGrid = "total":28,"rows":[n "ID":"1","IP":"192.168.1.1","HOSTNAME":"test","GATEWAY":"192.168.1.254","USEFOR":"测试","PROPOSER":"111","CREATEDATE":"2015-11-21","ID":"2","IP":"192.168.1.2","HOSTNAME":"test","GATEWAY":"192.168.1.254","USEFOR":"测试","PROPOSER":"111","CREATEDATE":"2015-11-21",n "ID":"1","IP":"192.168.1.1","HOSTNAME":"test","GATEWAY":"192.168.1.254","USEFOR":"测试","PROPOSER":"111","CREATEDATE":"2015-11-21","ID":"2","IP":"192.168.1.2","HOSTNAME":"test","GATEWAY":"192.168.1.254","USEFOR":"测试","PROPOSER":"111","CREATEDATE":"2015-11-21"n ];n```nnnnnnnn
EasyUI datagrid不显示table信息问题
 一个页面同时有两个datagrid时,其中一个datagrid被调用后不显示table及其信息。如果你不是因为没有设置table宽高、不是因为写错单词或因copy忘了改两个datagrid的id造成的失误,那就检查哈你的table是不是写成这样了:如果是这样那就赶紧改吧:改完后刷新页面table及其信息就这样就神奇般出来了。...
easyui datagrid 不显示数据问题
![图片说明](https://img-ask.csdn.net/upload/201707/25/1500922234_974788.jpg)rnrnjsp代码:rnrnrn```rn <%@ page language="java" contentType="text/html; charset=UTF-8"rn pageEncoding="UTF-8"%>rnrnrnrn rn 用户信息rnrn<%@include file="/public/head.jspf"%>rnrn rn rn 注册时间rn 手机号rn rn 筛选rnrn rnrnrn rnrnrn```rnrnrnrn格式返回应该没错, 页面也没有报错,就是不显示数据,求解
easyui datagrid combobox的显示问题
rn rn rn 编号rn 客户rn 概要rn 服务类型rn 创建人rn 创建日期rn 分配给rn 操作rn rn rn rnrnrn服务类型是combobox,每条记录怎么根据code值显示内容啊。rn
easyui datagrid 底部分页栏不显示
如图rn[img=https://img-bbs.csdn.net/upload/201610/14/1476413730_387485.jpg][/img]rn现在分页栏显示不出来,怎么办?rn贴上我的页面代码[code=javascript]rn var time = $("#time").val();rn $('#tt').datagrid( rn title: "省市单位数据", rn url: '<%=request.getContextPath()%>/Sgszbzs/getGriddataBySql?kpiid='+id+'&time='+time, rn pageSize:30,rn //high:100%,rn rowStyler: function(index,row)rn return 'font-size:10px;';rn ,rn pageList : [30,40,50],//可以选择的分页集合rn nowrap : true,//设置为true,当数据长度超出列宽时将会自动截取rn striped : true,//设置为true将交替显示行背景。rn collapsible : true,//显示可折叠按钮rn fitColumns:true,//允许表格自动缩放,以适应父容器rn pagination : true,//分页rn rownumbers : true,//行数rn columns: [ rn [ rn field: 'dwbm', title: '单位编码', width: 100, align: "center", rn field: 'dwmc', title: '单位名称', width: 130, align: "center", rn field: 'dwjb', title: '单位级别', width: 100, align: "center",rn field: 'zbjg', title: '指标结果', width: 100, align: "center",rn field: 'sfyj', title: '是否预警', width: 100, align: "center",rn field: 'sfss', title: '是否申诉', width: 100, align: "center",rn field: 'gbgs', title: '指标公式', width: 280, align: "center",rn ] rn ] rn ); rn[/code]rnrn对应页面代码rn[code=html]rn rn rn[/code]
easyui datagrid右边框不显示的解决方法
 将datagrid 的函数放在$(function(){})内,datagrid右边框就可以正常显示了
easyui datagrid 不显示第一页数据
问个很白的问题。。别笑话我。。。rn打算页面打开后,就直接显示数据,rn但是现在必须点一下分页栏上的刷新才显示。倒也显示页数和记录数,请教这是怎么回事啊? rnrn```rn rn```rnrn
easyUI使用datagrid分页栏不显示
今天在使用easyUI的时候,发现一个很奇怪的问题,就是我的中部布局的div中在加了一个table后,里面表格的分页栏就不能显示出来了,不多说了,直接上代码吧 datagrid表格加载函数 $('#back_llzpj_datagrid').datagrid({   url : '/Examination2.0/assessmentpaper_findAllPointPaper.ac
bootstrap弹出框不显示EasyUI dataGrid数据
修改 弹出框为bootstrap弹出框 bootstrap弹出框不显示EasyUI dataGrid数据: 解决办法,在 dataGrid加载前加上 代码: $('#myModal').on("shown.bs.modal",function(){ $('#listDataTable').datagrid('resize'); }); ...
easyui中datagrid 不显示数据
之前并没有系统使用easyui组件的机会。本次也是在基于该前端框架下完成一个简单的查询功能并展示的问题。 datagrid即数据网格,用于展示列表数据,以行为单位且支持分页。 问题背景:根据查询参数查询符合条件的数据。前端使用easyUI,后端使用spring mvc。 然而根据条件查询只会返回一条数据,因此也没有考虑分页什么的。 现象:后台以JSON格式返回,键值与前端的field的名称...
easyui datagrid 显示时间转换
DateFormat df = new SimpleDateFormat(&quot;yyyy-MM-dd&quot;);//格式化时间   log_qxj.setTime1(df.format(log_qxj.getTime()));
easyUI下datagrid嵌套显示
主要是运用 easyui的方法进行行内嵌套显示,让一行可以显示更多的东西,让一行显示JSON的字符串、从表之类的东西。 下边先看效果图: 接下来说实现过程: (1)在首次加载中添加代码 view: detailview, detailFormatter:function(index,row){ return '&lt;div style="padding:2px"...
easyui不显示table问题
看看是否table嵌套了,table内的table无法显示
easyUI treegrid 不显示
[color=#FF0000]这个是jsp页面[/color][size=24px][/size]rn<%@ page language="java" contentType="text/html; UTF-8" pageEncoding="UTF-8" %>rn<%rn String path = request.getContextPath();rn String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rn%>rnrnrnrn rn rn rn jQuery EasyUI Demorn rn rn rn rnrnrn Basic TreeGridrn TreeGrid allows you to expand or collapse group rows.rn rn rn rn rn Namern Sizern rn rn rn rnrnrn这个是后台传回的数据rn["children":["URL":"admin/adminUser/index.action","id":2,"name":"管理员管理","orderId":71,"roleType":1,"URL":"admin/role/index.action","id":3,"name":"角色管理","orderId":72,"roleType":1,"URL":"/admin/model/modellist.action","id":128,"name":"菜单管理","orderId":136,"roleType":1],"id":1,"name":"系统管理","orderId":1,"roleType":1,"children":["URL":"term/jumpPage.action?operting=view/terminal/agentManager/agentOutTerm","id":80,"name":"商户終端","orderId":13,"roleType":2,"URL":"term/jumpPage.action?operting=view/terminal/agentManager/agentOutTermToOne","id":104,"name":"代理商终端","orderId":112,"roleType":2,"URL":"term/jumpPage.action?operting=view/terminal/agentManager/termStatusInfoOne","id":82,"name":"终端管理","orderId":113,"roleType":2,"URL":"term/jumpPage.action?operting=view/terminal/termFlowTmp/termFlowTmpByAgent","id":109,"name":"终端审批回退","orderId":117,"roleType":2,"URL":"term/jumpPage.action?operting=view/terminal/agentManager/termStatusInfoTwo","id":83,"name":"终端管理","orderId":120,"roleType":2],"id":56,"name":"终端管理","orderId":1,"roleType":2,"children":["URL":"admin/adv/index.action","id":6,"name":"广告审核","orderId":41,"roleType":1,"URL":"admin/sysConfig/servingStatus.action","id":7,"name":"广告投放策略","orderId":42,"roleType":1,"URL":"admin/profitConfig/index.action","id":8,"name":"分润设置","orderId":43,"roleType":1,"URL":"admin/industry/index.action","id":9,"name":"行业管理","orderId":44,"roleType":1,"URL":"admin/getAdvManageList.action","id":10,"name":"平台广告管理","orderId":45,"roleType":1,"URL":"admin/message/index.action","id":12,"name":"消息中心","orderId":46,"roleType":1,"URL":"admin/sysConfig/termTime.action","id":86,"name":"终端播放设置","orderId":47,"roleType":1,"URL":"admin/article/index.action","id":94,"name":"文章管理\r\n","orderId":48,"roleType":1,"URL":"term/jumpPage.action?operting=view/terminal/termSetMoney","id":96,"name":"终端价格设置","orderId":106,"roleType":1],"id":5,"name":"运营管理","orderId":2,"roleType":1,"children":["URL":"agent/skipNewAgent.action?operting=view/agent/agentManager/QryListAgentAdv","id":66,"name":"广告主管理","orderId":6,"roleType":2,"URL":"agent/skipNewAgent.action?operting=view/agent/agentManager/QryAgentUser","id":84,"name":"商户管理","orderId":15,"roleType":2,"URL":"agent/toQRCodeMarketing.action","id":98,"name":"代理商推广","orderId":17,"roleType":2,"URL":"agent/indexUser.action?merType=04","id":34,"name":"商户审批回退","orderId":81,"roleType":2,"URL":"agent/qryListAgentOne.action","id":100,"name":"二级代理商管理","orderId":108,"roleType":2,"URL":"agent/indexUser.action?merType=06","id":101,"name":"二级商户审核","orderId":109,"roleType":2],"id":58,"name":"代理商管理","orderId":2,"roleType":2,"URL":"","children":["URL":"term/jumpPage.action?operting=view/terminal/findtermInfo","id":18,"name":"入库管理","orderId":73,"roleType":1,"URL":"term/jumpPage.action?operting=view/terminal/findOutTermInfo","id":26,"name":"出库管理","orderId":77,"roleType":1,"URL":"term/jumpPage.action?operting=view/terminal/termStatusInfo","id":28,"name":"终端状态管理","orderId":78,"roleType":1,"URL":"term/jumpPage.action?operting=view/terminal/templateManager","id":97,"name":"模版管理","orderId":107,"roleType":1,"URL":"term/jumpPage.action?operting=view/terminal/termFlowTmp/termFlowTmp","id":108,"name":"终端审核","orderId":116,"roleType":1],"id":4,"name":"终端管理","orderId":3,"roleType":1,"children":["URL":"agent/order/index.action","id":68,"name":"订单管理","orderId":7,"roleType":2,"URL":"agent/profitConfig/oneLevelAgent.action","id":102,"name":"分润设置","orderId":110,"roleType":2,"URL":"agent/profitConfig/twoLevelAgent.action","id":103,"name":"二级分润设置","orderId":111,"roleType":2,"URL":"term/jumpPage.action?operting=view/terminal/terminfosub/termInfoProfit","id":107,"name":"终端分润设置","orderId":115,"roleType":2],"id":60,"name":"交易管理","orderId":3,"roleType":2,"children":["URL":"admin/getOrderPage.action","id":14,"name":"订单管理","orderId":51,"roleType":1,"URL":"admin/sysConfig/orderDisTime.action","id":15,"name":"订单设置","orderId":52,"roleType":1],"id":13,"name":"交易管理","orderId":4,"roleType":1,"children":["URL":"agent/finance/index.action?idenType=agent","id":70,"name":"代理商对账","orderId":8,"roleType":2,"URL":"agent/finance/index.action?idenType=mer","id":72,"name":"商户对账","orderId":9,"roleType":2,"URL":"agent/finance/tardRecordIndex.action","id":74,"name":"交易记录","orderId":10,"roleType":2,"URL":"agent/order/withdrawIndex.action","id":76,"name":"提现管理","orderId":11,"roleType":2,"URL":"agent/order/bankCardList.action","id":88,"name":"账户管理","orderId":16,"roleType":2],"id":62,"name":"财务管理","orderId":4,"roleType":2,"URL":"","children":["URL":"agent/qryListAgent.action","id":20,"name":"代理商管理","orderId":74,"roleType":1,"URL":"agent/indexUser.action?merType=01","id":22,"name":"广告主管理","orderId":75,"roleType":1,"URL":"Auser/userlist.action","id":23,"name":"会员管理","orderId":76,"roleType":1,"URL":"agent/auditAgent.action","id":30,"name":"代理商审核","orderId":79,"roleType":1,"URL":"agent/indexUser.action?merType=05","id":36,"name":"商户管理","orderId":80,"roleType":1,"URL":"agent/indexUser.action?merType=03","id":32,"name":"商户审核","orderId":82,"roleType":1],"id":16,"name":"代理商管理","orderId":5,"roleType":1,"children":["URL":"finance/indexFinance.action?merType=01","id":46,"name":"平台对账","orderId":99,"roleType":1,"URL":"finance/indexFinance.action?merType=02","id":48,"name":"代理商对账","orderId":100,"roleType":1,"URL":"finance/merchantAccountList.action","id":50,"name":"商户对账","orderId":101,"roleType":1,"URL":"finance/generalAccountList.action","id":52,"name":"普通用户对账","orderId":102,"roleType":1,"URL":"finance/tradeRecordList.action","id":54,"name":"交易记录","orderId":103,"roleType":1,"URL":"finance/getWithdrawPage.action","id":55,"name":"提现记录","orderId":104,"roleType":1,"URL":"finance/invoiceManagementList.action","id":92,"name":"发票管理","orderId":105,"roleType":1,"URL":"record/index.action?operting=view/finance/record/agentRecordList","id":119,"name":"代理商交易记录","orderId":127,"roleType":1,"URL":"record/index.action?operting=view/finance/record/userRecordList","id":120,"name":"用户交易记录","orderId":128,"roleType":1,"URL":"web/chanpay/toApplyListPage.action","id":121,"name":"畅捷支付代理商管理","orderId":129,"roleType":1],"id":44,"name":"财务管理","orderId":6,"roleType":1,"URL":"","children":["URL":"redis/toRedisPlayPlan.action","id":99,"name":"redis播放计划","orderId":49,"roleType":1,"URL":"term/jumpPage.action?operting=view/sys/setSysTypes","id":106,"name":"系统属性配置","orderId":114,"roleType":1],"id":105,"name":"后台运维","orderId":113,"roleType":1,"children":["URL":"term/jumpPage.action?operting=view/admin/account/acAdManager","id":110,"name":"账户充值","orderId":118,"roleType":1,"URL":"admin/coupons/setCoupons.action","id":111,"name":"券模板设置","orderId":119,"roleType":1,"URL":"finance/toAccountList.action","id":113,"name":"账户查询","orderId":121,"roleType":1],"id":112,"name":"账户管理","orderId":120,"roleType":1,"children":["id":115,"name":"百度互联网广告","orderId":123,"roleType":1,"URL":"adsys/editAdPrice.action","id":118,"name":"广告价格设置","orderId":126,"roleType":1],"id":114,"name":"互联网广告管理","orderId":122,"roleType":1,"children":["URL":"/agent/finance/index.action?idenType=twoAgent","id":123,"name":"二级代理分润设置","orderId":131,"roleType":2,"URL":"/agent/finance/index.action?idenType=agentStore","id":124,"name":"商户分润设置","orderId":132,"roleType":2],"id":122,"name":"分润设置","orderId":130,"roleType":2,"children":["id":125,"name":"订单系统管理","orderId":133,"roleType":1,"id":130,"name":"账务系统管理","orderId":138,"roleType":1],"id":129,"name":"企业版","orderId":137,"roleType":1]rnrn[b]页面显示[/b][size=18px][/size]rn[img=https://img-bbs.csdn.net/upload/201803/24/1521862979_790501.jpg][/img]rnrnjson在线解析数据没问题啊rn[img=https://img-bbs.csdn.net/upload/201803/24/1521862708_573201.jpg][/img]rn求助啊 [img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/83.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/83.gif][/img]
SSH2 easyUI项目
Struts2 Hibernate Spring easyUI项目,没完成多少功能
easyUi datagrid 初始化不加载数据
easyUi在后台数据量很大的情况下加载数据是非常慢的,因为easyUi在初始化时有url的情况下是默认加载一遍url,我们在初始化时可以这样做url赋为''datagrid = $('#datagrid').datagrid({ url : '', title : '', pagination : true, pageSize : 10, pageList
关于easyUI datagrid 查询数据后不显示的问题
写的datagrid在查询数据之后无法显示想要的页面rnrn $(document).ready(function ()rn $(function ()rn $("#dg").datagrid(rn url:'$pageContext.request.contextPath/findByplace_Servlet?flag=info'rn )rn );rn );rnrn $("#btser").click(function()rn var place = $("#h_place").val();rn $.ajax(rn url : "$pageContext.request.contextPath/findByplace_Servlet?flag=query",rn success : function()rn alert("AAA");rn rn );rn $("#dg").datagrid(rn url : '$pageContext.request.contextPath/findByplace_Servlet?flag=info',rn "h_place" : placern );rn $("#dg").datagrid("reload");rn );rn rn后台拿数据的时候,前台会跳好几次rn求教大神,应该怎么弄rnrn[img=https://img-bbs.csdn.net/upload/201704/18/1492518402_509922.png][/img]
EasyUI DataGrid 初始化不加载数据
EasyUI DataGrid 初始化不加载数据,下面有两种方法可参考。 重新加载datagrid url,代码如下: $('#dg').datagrid({ title: &amp;amp;quot;合同交互&amp;amp;quot;, fit: true, queryParams: { BeginTime: $('#date_beginTime').datetimebox(&amp;amp;quot;getVal...
easyui中datagrid不加载问题
今日遇到一个奇怪问题,datagrid就是不加载,debug看了一下,触发对象貌似不正常。使用jquery或者dom去查找元素都找不到,但是easyui也不报undifined异常,很是奇怪。 问题出现环境:页面三层结构,第一层是一个datagrid,点击其中链接通过新建window进入第二层,第二层包含普通form元素,点击链接通过新建window进入第三层,在第三层使用datagri
EasyUi datagrid百分比显示宽度,EasyUi datagrid自适应窗口大小
easyui Datagrid自适应窗口大小 easyui Datagrid百分比显示宽度
easyUI——控制datagrid的显示与隐藏
在做java-ITOO的选课系统时,学生选课界面要显示:可选课程,已选课程和历史选课。在这一个界面上,信息量是非常大的,怎么样让用户快速,简洁的了解自己要的信息呢?     故,我们决定把已选课程和历史选课先隐藏起来,做了一个按钮,让用户点击的时候再出现。     那么到了实现的时候了!铛铛铛铛……
[easyui]datagrid鼠标移动显示单元格内容
当单元格内容过长无法完全显示怎么办?如果鼠标移动到该单元格可以自动显示出所有文字内容就好啦。 这里提供两个思路 给对应节点添加一个title属性,值就是节点的内容 添加事件,移动到单元格就用一个tooltip显示内容 方法一添加title属性,值为文字内容首先找到对应节点 可以根据这个其中的一个class来定位 datagrid-cell假设这个datagrid的id为dg那就这么写 这里要
EasyUI的DataGrid显示ASP.NET内容
EasyUI版本比较旧,请下载新的版本更新,最新版本测试通过。
easyui datagrid 数据的显示和查询
引用css、js 初始化DataGrid $(document).ready(function() { $("#table").datagrid({ 'url':'${pageContext.request.contextPath}/Data.do',//异步请求数据的url 'fitCo
EasyUI Datagrid 鼠标悬停显示单元格内容
1.js 定义函数 "text/javascript"> //格式化单元格提示信息 function formatCellTooltip(value){ return "" + value + "'>" + value + ""; } 2、调用函数      data-options=
easyui datagrid显示子属性
columns通过json实现定义好,formatter1:"function fn(){.......}" ,前端通过ajax请求json,遍历columns拿到有formatter1属性的那列,通过eval(),把字符串解析成函数,最后将该列的['formatter'] = fn,即可达到目的
Easyui DataGrid 显示外键对象
{field:&quot;positionname&quot;,title:&quot;职位&quot;,align:&quot;center&quot;,width:80, formatter: function(value,row,index){ return new Object(row[&quot;position&quot;]).positionname; } }
easyui datagrid 列隐藏和显示
easyui datagrid 列隐藏和显示
easyui datagrid数据显示不出来
在我正确的按照例子从后台取数后,前台无法显示(都不报错,数据正常),发现去除几个字段可以显示,加上就无法显示,很无奈,后来才发现,返回的数据中出现了空格 还有\r \n 类似于\ 这种符号,可能由于easyui datagrid 不识别这类数据,然后就展示空白,希望小伙伴们注意了
easyui datagrid 显示横行滚动条
var datagrid = $('#datagridw').datagrid({ pageSize : 15, pageNumber : 1, fit:true, pagination : true, singleSelect:true, collapsible: true, rownumbers : true, loadMsg : '正在加载...', url : '....
ASP.NET MVC EasyUI datagrid显示行数问题
我在用了PageSize :15rnfunction Test() rnrn $('#dg').datagrid(rn title: 'Checkbox selection on DataGrid',rn url: '/Home/GetData',rn method: 'GET', //默认是post,不允许对静态文件访问rn width: '700',rn //iconCls: 'icon-save',rn dataType: 'JSON',rn fitColumns: true,rn rownumbers: true, //是否加行号 rn pagination: true, //是否显式分页 rn pageSize: 15, //页容量,必须和pageList对应起来,否则会报错 rn pageNumber: 1, //默认显示第几页 rn pageList: [15, 30, 45],//分页中下拉选项的数值 rn columns: [[rn field: 'UserName', title: '名称' ,rn field: 'UserPass', title: '密码' rn ]],rn singleSelect: false, //允许选择多行rn selectOnCheck: true,//true勾选会选择行,false勾选不选择行, 1.3以后有此选项rn checkOnSelect: true //true选择行勾选,false选择行不勾选, 1.3以后有此选项rn );rn rn后台rn[HttpGet]rn public JsonResult GetData()rn rn List t1 = new List();rn for (int i = 0; i < 40; i++)rn rn Test test = new Test();rn test.UserName = "Test1";rn test.UserPass = "Test1";rn t1.Add(test);rn rn return Json(t1, JsonRequestBehavior.AllowGet);rn rnrn public class Testrn rn public string UserName get; set; rn public string UserPass get; set; rn rn还是把40条数据都显示出来了 不知道为什么,请教!!!!!!!!!!!!!!请教!!!!!!!!!!!!
easyui datagrid显示19位数字的问题
oracle中使用number(19,0)的Id作为关键字,数据有1000000000000000056,1000000000000000057,1000000000000000157等,使用JsonConvert.SerializeObject()获取出来的json数据是"id":1000000000000000057.0,"id":1000000000000000157.0,可是easyui datagrid显示的时候1000000000000000056、1000000000000000057却变成了1000000000000000000,而1000000000000000157却变成了1000000000000000100;也就是说后面三位是0××的都变成000,是1××就变成100。为什么啊?高手指教一下,该如何解决这个问题。
easyui datagrid显示选择行数据问题
今天使用easyui datagrid发现无论怎么选择行,getSelections得到的数据都不为选择的所有数据。 发现是由于设置了idField属性,所以如果idField没有载入,它会认为是同一条数据,所以发生上面情况。 idField属性删除后就行了。 ...
easyUI使用datagrid不能显示表头的问题
今天在做一个项目时,发现datagrid的表头一直不能显示出来,后面自己不停的拿一个模板datagrid和自己写的进行对比,发现自己的写法并没有任何问题,但是它就是不显示出来,就这样搞了个把小时,最后突然想起会不会是css的问题,然后自己一个个去排除css,终于发现那个坑了table  {margin:auto;padding:0;}就这么一行css代码,导致整个表头无法显示。解决办法:暴力删除这...
ASP.NET MVC EasyUI DataGrid显示数据问题
我在用了PageSize :15rnfunction Test() rnrn $('#dg').datagrid(rn title: 'Checkbox selection on DataGrid',rn url: '/Home/GetData',rn method: 'GET', //默认是post,不允许对静态文件访问rn width: '700',rn //iconCls: 'icon-save',rn dataType: 'JSON',rn fitColumns: true,rn rownumbers: true, //是否加行号 rn pagination: true, //是否显式分页 rn pageSize: 15, //页容量,必须和pageList对应起来,否则会报错 rn pageNumber: 1, //默认显示第几页 rn pageList: [15, 30, 45],//分页中下拉选项的数值 rn columns: [[rn field: 'UserName', title: '名称' ,rn field: 'UserPass', title: '密码' rn ]],rn singleSelect: false, //允许选择多行rn selectOnCheck: true,//true勾选会选择行,false勾选不选择行, 1.3以后有此选项rn checkOnSelect: true //true选择行勾选,false选择行不勾选, 1.3以后有此选项rn );rn rn后台rn[HttpGet]rn public JsonResult GetData()rn rn List t1 = new List();rn for (int i = 0; i < 40; i++)rn rn Test test = new Test();rn test.UserName = "Test1";rn test.UserPass = "Test1";rn t1.Add(test);rn rn return Json(t1, JsonRequestBehavior.AllowGet);rn rnrn public class Testrn rn public string UserName get; set; rn public string UserPass get; set; rn rn还是把40条数据都显示出来了 不知道为什么,请教!!!!!!!!!!!!!!请教!!!!!!!!!!!!
解决EasyUI的datagrid控件显示日期问题
在做积分系统的时候,做的是后台管理系统,所以前段框架用的是EasyUI,使用datagrid的时候,后台返回来一个日期格式的数据,当json序列化后返回来的数据就变成了/Date(1419264000000)/改前代码: <table id="dg" class="easyui-datagrid" style="width:auto;height:auto" url="/Qu
easyui datagrid中行颜色显示的问题
我用rowStyler给行设置样式后,默认的选中行样式就不起作用了,如何解决?rnrnrn```rn rowStyler:function(rowIndex,rowData) rn //已审核的变色 rn if(rowData.auditingState=="2" ) rn rn return 'background-color:#eee;'; rn rn , rn```rnrn
EasyUI datagrid滚动条显示问题,急~
datagird显示不出来水平和垂直的滚动条,之前百度了一些解决方法也试着去改了一下,然而没什么用,就把代码还原了。rn代码如下rngrid = $("#grid").datagrid(rn title : '',rn url : '<%=contextPath%>/roleDefine!getRoleInfoAll.action',rn queryParams : rn "queryRoleInfoCondition.rolecode" : "",rn "queryRoleInfoCondition.rolename" : "",rn "queryRoleInfoCondition.status" : ""rn ,rn striped : true,rn rownumbers : true,rn pagination : true,rn singleSelect : false,rn checkOnSelect : true,rn selectOnCheck : true,rn idField : 'id',rn sortName : 'id',rn sortOrder : 'desc',rn pageSize : 50,rn fit:true,rn pageList : [ 10, 20, 30, 40, 50, 100, 200, 300, 400, 500 ],rn frozenColumns : [rn [ rn rn width : '50',rn field : 'ck',rn checkbox : truern ,(后面几个列就不一一列出来了)rn下面是body页面中table部分rn rn rn rnchrome显示如下图,横向本来是10列数据,只显示了8列,一页20条数据的时候第20条不知道哪去了,下一个页直接就21开始了rn[img=https://img-bbs.csdn.net/upload/201710/16/1508133980_312763.png][/img]rnIE显示如下图,IE第一页只显示到17第二页正常rn[img=https://img-bbs.csdn.net/upload/201710/16/1508134534_241052.png][/img]rn小弟新手一枚,还望诸位大神指点迷津,感激不尽[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/21.gif][/img]
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池