2019年2月14日

摘要: 解决方法:把复选框放到最左或者最右 最左,修改n+3中的“ 3 ” ,以达到想要的效果 最右,过滤掉最后一列:filter: “td:nth-child(n+3) :not-last-child”, 阅读全文
posted @ 2019-02-14 09:23 城市小农民 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 方法一: $("#Grid").kendoTooltip({ show: function(e){ if(this.content.text().length > 20){ this.content.parent().css("visibility", "visible"); } }, hide:f 阅读全文
posted @ 2019-02-14 09:19 城市小农民 阅读(160) 评论(0) 推荐(0) 编辑
摘要: {field:'ruleCode',title: '<@spring.message "gxpvalidrule.rulecode"/>',width:'100px',locked:true //锁住前两列}, 阅读全文
posted @ 2019-02-14 09:17 城市小农民 阅读(112) 评论(0) 推荐(0) 编辑
摘要: saveFunction:function () { $('#grid1').data('kendoGrid').saveChanges().done(function(e){ if(e.response.success){ viewModel.set("model.statusCode","ALT 阅读全文
posted @ 2019-02-14 09:16 城市小农民 阅读(187) 评论(0) 推荐(0) 编辑
摘要: //删除数据 function deleteData() { var grid = $("#Grid").data("kendoGrid"); var checked = grid.selectedDataItems(); //获得选中的数据行 if (checked.length == 0) { 阅读全文
posted @ 2019-02-14 09:15 城市小农民 阅读(147) 评论(0) 推荐(0) 编辑
摘要: //列标题居中 headerAttributes: { "class": "table-header-cell", style: "text-align: center;" }, //列数据居左 attributes: {style: "text-align:left;"}, //列数据过长时,不换 阅读全文
posted @ 2019-02-14 09:12 城市小农民 阅读(217) 评论(0) 推荐(0) 编辑
摘要: tr[data-uid=dataItem.uid] 可以定位Grid的某一行。 //控制背景颜色 { hidden: true, template: function (dataItem) { var uid = dataItem.uid; if (dataItem.statusCode == "S 阅读全文
posted @ 2019-02-14 09:10 城市小农民 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-02-14 09:06 城市小农民 阅读(320) 评论(0) 推荐(0) 编辑

导航