随笔分类 -  EasyUI

摘要:1.问题描述 easyui 编辑表格新增一条数据后,删除最后一行删除不了,原因是没有提交数据acceptChanges。 源码中deleteRow方法,根据坐标获取行html,方法为opts.finder.getTr(_7cb,_7cc).remove()。 如id="datagrid-row-r4 阅读全文
posted @ 2016-09-27 10:04 芜明-追星 阅读(467) 评论(0) 推荐(0)
摘要:JS: //合并相同数据的单元格 function MergeCells(seletor, rows, fields) { if(rows == null || rows.length == 0 || fields == null || fields.length == 0) { return; } 阅读全文
posted @ 2016-09-27 10:00 芜明-追星 阅读(736) 评论(0) 推荐(0)
摘要:/** * author ____′↘夏悸 * create date 2012-11-5 **/$.extend($.fn.datagrid.methods, { autoMergeCells : function (jq, fields) { return jq.each(function () 阅读全文
posted @ 2016-09-27 09:55 芜明-追星 阅读(267) 评论(0) 推荐(0)
摘要:JS: /** * EasyUI DataGrid根据字段动态合并单元格 * @param fldList 要合并table的id * @param fldList 要合并的列,用逗号分隔(例如:"name,department,office"); */ function MergeCells(ta 阅读全文
posted @ 2016-09-27 09:45 芜明-追星 阅读(956) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2016-09-26 09:56 芜明-追星 阅读(162) 评论(0) 推荐(0)
摘要:(function($){ $.extend($.fn.treegrid.defaults, { onBeforeDrag: function(row){}, // return false to deny drag onStartDrag: function(row){}, onStopDrag: 阅读全文
posted @ 2016-09-26 09:54 芜明-追星 阅读(499) 评论(0) 推荐(0)
摘要:<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%@ include file="/include/head.jsp"%><%@taglib prefix="fm" uri="http://java.sun.c 阅读全文
posted @ 2016-09-26 09:52 芜明-追星 阅读(551) 评论(0) 推荐(0)
摘要:/** * 扩展两个方法 */$.extend($.fn.datagrid.methods, { /** * 开打提示功能 * @param {} jq * @param {} params 提示消息框的样式 * @return {} */ doCellTip: function (jq, para 阅读全文
posted @ 2016-09-26 09:40 芜明-追星 阅读(1307) 评论(0) 推荐(0)
摘要:columns: [[ { field: 'Source_Id', title: 'Source_Id', hidden: true }, //{ field: 'Current_Value', hidden: true }, { field: 'Source_Type_Id', title: 'S 阅读全文
posted @ 2016-09-26 09:32 芜明-追星 阅读(674) 评论(0) 推荐(0)
摘要:$.extend($.fn.datagrid.methods,{ /** * 开打提示功能 * * @param {} * jq * @param {} * params 提示消息框的样式 * @return {} */ doCellTip : function(jq, params) { func 阅读全文
posted @ 2016-09-26 09:31 芜明-追星 阅读(239) 评论(0) 推荐(0)
摘要:/** * combobox和combotree模糊查询 */(function () { //combobox可编辑,自定义模糊查询 $.fn.combobox.defaults.editable = true; $.fn.combobox.defaults.filter = function ( 阅读全文
posted @ 2016-09-26 09:25 芜明-追星 阅读(398) 评论(0) 推荐(0)
摘要:(function ($) { //combotree可编辑,自定义模糊查询 $.fn.combotree.defaults.editable = true; $.extend($.fn.combotree.defaults.keyHandler, { query: function (q) { v 阅读全文
posted @ 2016-09-26 09:25 芜明-追星 阅读(244) 评论(0) 推荐(0)
摘要:调用:$('#dg').datagrid('doCellTip', { 'max-width': '100px' }); /** * 扩展两个方法 */$.extend($.fn.datagrid.methods, { /** * 开打提示功能 * @param {} jq * @param {} 阅读全文
posted @ 2016-09-26 09:22 芜明-追星 阅读(602) 评论(0) 推荐(0)
摘要:/** * Created with JetBrains WebStorm. * User: cao.guanghui * Date: 13-6-26 * Time: 下午11:27 * To change this template use File | Settings | File Templ 阅读全文
posted @ 2016-09-26 09:21 芜明-追星 阅读(319) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>ComboTree - jQuery EasyUI Demo</title> <link re 阅读全文
posted @ 2016-09-26 09:18 芜明-追星 阅读(1237) 评论(0) 推荐(0)
摘要:$(function () { gridbind(); bindData(); }); //表格绑定function gridbind() { $('#dg').datagrid({ title: '动作管理', iconCls: '', width: fixWidth(1) - 25,// fix 阅读全文
posted @ 2016-09-26 09:17 芜明-追星 阅读(334) 评论(0) 推荐(0)
摘要:(function ($) { window.XW = {}; //全局系统对象 //异步请求统一调用方法 XW.ajax = function (options, param, callback) { var p = { type: "get", url: null, dataType: "jso 阅读全文
posted @ 2016-09-26 09:14 芜明-追星 阅读(3812) 评论(0) 推荐(0)
摘要:(function ($) { var $parent = parent.$; //获取弹出窗口数据集合 function getDialogs() { var dialogs = $parent("#div_index_data").data("dialogs"); dialogs = dialo 阅读全文
posted @ 2016-09-26 09:14 芜明-追星 阅读(1157) 评论(0) 推荐(0)
摘要:function pagerFilter(data) { if (typeof data.length == 'number' && typeof data.splice == 'function') { // is array data = { total: data.length, rows: 阅读全文
posted @ 2016-09-26 09:12 芜明-追星 阅读(266) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>CheckBox Selection on DataGrid - jQuery EasyUI Demo</title> <link rel="stylesheet" type="tex 阅读全文
posted @ 2016-09-26 09:11 芜明-追星 阅读(319) 评论(0) 推荐(0)