2019年2月14日

摘要: { field: "tran_unit_pri", title: "Unit Price", width: 100, attributes: { style: "text-align: right;" }, format: "{0:n}", editor: function (container, 阅读全文
posted @ 2019-02-14 10:38 城市小农民 阅读(113) 评论(0) 推荐(0) 编辑
摘要: $("#grid").kendoGrid({ ... //省略 edit:function(e){ if(e.model.isNew()){ // 新建按钮,和新增的行都可触发 //grid 的 dataSource var data=dataSource.data().toJSON(); var 阅读全文
posted @ 2019-02-14 10:35 城市小农民 阅读(118) 评论(0) 推荐(0) 编辑
摘要: kendo.template("<a href='\\#'>link</a>"); <script type="text/x-kendo-template" id="myTemplate"> <a href="\#">link</a> </script> <script> var myTemplat 阅读全文
posted @ 2019-02-14 10:21 城市小农民 阅读(582) 评论(0) 推荐(0) 编辑
摘要: <script type="text/x-kendo-template" id="myTemplate"> <ul> # for(var i=0;i<data.length;i++) { # <li>#= data[i] #</li> # } # </ul> </script> <script ty 阅读全文
posted @ 2019-02-14 10:20 城市小农民 阅读(107) 评论(0) 推荐(0) 编辑
摘要: $("#auInput").kendoAutoComplete({ dataSource: [ {id:1, name:"Neo"}, {id:2, name:"Shelly"} ], dataTextField: "name", template: kendo.template("<span><i 阅读全文
posted @ 2019-02-14 10:16 城市小农民 阅读(60) 评论(0) 推荐(0) 编辑
摘要: //模版html代码<script id="auth-template" type="text/x-kendo-template"> <input type='checkbox' data-code="#:Code#" id='addCk_#:Code#' name='addCk_#:Code#' 阅读全文
posted @ 2019-02-14 10:08 城市小农民 阅读(228) 评论(0) 推荐(0) 编辑
摘要: //第一种:放在页面上(记得标明属性type="text")<input type="text" pattern="^[A-Za-z0-9\.\-_@]+$" validationMessage='最多30个字符(支持英文数字.-_@)'> kendo.ui.validator.rules.data 阅读全文
posted @ 2019-02-14 10:04 城市小农民 阅读(162) 评论(0) 推荐(0) 编辑
摘要: //当查询字段“核对状态”限制为已核对时,将“自动核对”按钮置灰,不可点击 function disableAutoSettlementBtn(a){ if($("#flowStatus").val() == 'CHECKED'){ $("#btn_auto_settlement").attr("d 阅读全文
posted @ 2019-02-14 09:37 城市小农民 阅读(276) 评论(0) 推荐(0) 编辑
摘要: toolbar: [{ template : '<span id="btn_add" class="span-btn-size span-span" data-bind="click:createFunction"><img alt="" src="${base.contextPath}/resou 阅读全文
posted @ 2019-02-14 09:37 城市小农民 阅读(477) 评论(0) 推荐(0) 编辑
摘要: dataBound: function (e) { //设置字体颜色 $.each(dataSource.data(), function (i, v) { if(v.billAmount < 0) { $('tbody > tr[data-uid="' + v.uid + '"] > td').c 阅读全文
posted @ 2019-02-14 09:36 城市小农民 阅读(363) 评论(0) 推荐(0) 编辑
摘要: //css样式类 <style> .grid-red{ background:#FF0000; } </style> dataBound: function (e) { //设置字体颜色 $.each(dataSource.data(), function (i, v) { if(v.billAmo 阅读全文
posted @ 2019-02-14 09:35 城市小农民 阅读(293) 评论(0) 推荐(0) 编辑
摘要: reorderable:true, //用于列拖拽columnMenu: true, //用于列选择rownumber:true, //用于显示行号 阅读全文
posted @ 2019-02-14 09:34 城市小农民 阅读(214) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-02-14 09:33 城市小农民 阅读(131) 评论(0) 推荐(0) 编辑
摘要: editable:function(col,item){ if(col=="ruleCode"){ if(this.basicId != "" && this.basicId != ){ //避免新建的时候也不可编辑 return false; } } return true;} 阅读全文
posted @ 2019-02-14 09:32 城市小农民 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1)设置div用于显示模态框<div id="win1"></div>2)设置模态框的样式$("#win1").kendoWindow({ width: "600px", height:"400px", title: '<@spring.message "指定人"/>', modal:true, r 阅读全文
posted @ 2019-02-14 09:29 城市小农民 阅读(595) 评论(0) 推荐(0) 编辑
摘要: { field: "startDate", title: '开始时间', headerAttributes: { "class": "table-header-cell", style: "text-align: center" }, attributes:{style: "white-space: 阅读全文
posted @ 2019-02-14 09:27 城市小农民 阅读(129) 评论(0) 推荐(0) 编辑
摘要: $("#templateName").attr("readonly",true).css("background", "#EEEEEE");$('#end-date').attr('disabled',true).data('kendoDatePicker').enable(false);$('#q 阅读全文
posted @ 2019-02-14 09:24 城市小农民 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 解决方法:把复选框放到最左或者最右 最左,修改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) 编辑

导航