Easy-ui引用
    <link href="css/EasyUI/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="css/EasyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="css/EasyUI/demo.css" rel="stylesheet" type="text/css" />

<script src="js/jq/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="js/EasyUI/jquery.easyui.min.js" type="text/javascript"></script>

$('#tt').datagrid({
            //标题
            title: 'Frozen Columns',
            //标题左上角的图标
            iconCls: 'icon-save',
            //宽高
            width: 1000,
            height: 250,
            //表头(title)上的工具栏
            //toolbar: '#aa',
            method: 'get',
            //最左边序号
            rownumbers: true,
            //选中单行(变成黄色)
            singleSelect: true,
            //锁定行(json中的foot)
            showFooter: true,
            //控制分页↓
            pageList: [10, 20, 50],
            collapsible: true,
            pagination: true,
            //控制分页↑
            loadMsg: "数据读取中......",
            url: 'datagrid_dataF.json',
         //锁定列(冻结列)
            frozenColumns: [[
                        { field: 'itemid', title: '操作', width: 40, formatter: function(value, row, index) {
                            var edit = "";
                            //                            if (row.editing) {
                            var del = "<a style=\"cursor:pointer\" onclick=\"delRow(" + index + ")\"><img src=\"image/cross.png\" alt=\"删除\" /></a>";
                            return edit + "&nbsp;&nbsp;" + del;
                            //                            }
                            //                            else {
                            //                                var del = "<a style=\"cursor:pointer\" onclick=\"delRow(" + index + ")\"><img src=\"~/image/cross.png\" alt=\"删除\" /></a>";
                            //                                return edit + "&nbsp;&nbsp;" + del;
                            //                            }
                        }
                        },

]],
            columns: [[
                        { field: 'chbm', title: '存货编码', align: 'center', width: 100 },
                        { field: 'chmc', title: '存货名称', align: 'center', width: 100 },
                        { field: 'ysdm', title: '颜色代码', align: 'center', width: 100 },
   { field: 'ysmc', title: '颜色名称', align: 'center', width: 100 },
   { field: 'dw', title: '单位', align: 'center', width: 100 },
   { field: 'sl', title: '数量', align: 'center', width: 100 },
   { field: 'hsdj', title: '含税单价', align: 'center', width: 100 },
   { field: 'hsje', title: '含税金额', align: 'center', width: 100 },
   { field: 'qsdj', title: '去税单价', align: 'center', width: 100 },
   { field: 'qsje', title: '去税金额', align: 'center', width: 100 },
   { field: 'se', title: '税额', align: 'center', width: 100 },
   { field: 'dlmc', title: '大类名称', align: 'center', width: 100 },
   { field: 'jh', title: '集合', align: 'center', width: 100 },
   { field: 'glspdm', title: '关联商品代码', align: 'center', width: 100 },
   { field: 'glspmc', title: '关联商品名称', align: 'center', width: 100 },
   { field: 'jj', title: '季节', align: 'center', width: 100 },
   { field: 'js', title: '结算', align: 'center', width: 100 }
                       ]]
        });

设置(冻结行)
   List<object> footer = new List<object>();
          footer.Add(new{列名1=数据1,列名2=数据2});

easy-ui datagrid的更多相关文章

  1. JQuery Easy Ui dataGrid 数据表格 ---制作查询下拉菜单

    JQuery Easy Ui dataGrid 数据表格 数据表格 - DataGrid 继承$.fn.panel.defaults,使用$.fn.datagrid.defaults重载默认值.. 数 ...

  2. Jquery Easy UI Datagrid 上下移动批量保存数据

    DataGrid with 上下移动批量保存数据 通过前端变量保存修改数据集合,一次性提交后台执行 本想结合easyui 自带的$('#dg').datagrid('getChanges'); 方法来 ...

  3. easy ui datagrid 增,删,改,查等基本操作

    如下图: ①列表信息图 ②添加信息图 ③修改信息图 html代码: <%@ Page Title="" Language="C#" MasterPageF ...

  4. jquery Easy UI Datagrid(数据网格)学习心德,附API

    第一步,引入主要的css样式和js文件 <meta http-equiv="Content-Type" content="text/html; charset=ut ...

  5. Jquery easy ui datagrid動態加載列問題

    1.如下图效果是当选择不同的日期范围时datagrid则会加载出对应的列数

  6. jquery easy ui datagrid中遇到的坑爹的問題。。。

    ; //修改 function Update() { //獲取選中行 var selected = $("#dg1").datagrid('getSelected'); //判斷是 ...

  7. JQuery Easy Ui DataGrid

    Extend from $.fn.panel.defaults. Override defaults with $.fn.datagrid.defaults. The datagrid display ...

  8. JQuery Easy Ui dataGrid 数据表格

    数据表格 - DataGrid 英文文档:http://www.jeasyui.com/documentation/index.php# 继承$.fn.panel.defaults,使用$.fn.da ...

  9. easy ui datagrid 获取选中行的数据

    取得选中行数据: var row = $('#tt').datagrid('getSelected'); if (row){ alert('Item ID:'+row.itemid+" Pr ...

  10. easy ui datagrid在没有数据时显示相关提示内容

    $(function () { $('#dg').datagrid({ fitColumns: true, url: 'product.json', pagination: true, pageSiz ...

随机推荐

  1. [Effective C++ --019]设计class犹如设计type

    前言 我们在编写程序的时候,无论哪一种语言,总是会告诉你这种语言应该有的类型.我们将它们直接拿来使用,可是从来没有考虑过这些类到底是怎么设计出来的! 所幸的是:在OOP中,每当我们定义一个新的clas ...

  2. Internationalization

    Internationalization If you are building a site for an international audience, you will likely want ...

  3. 如何使用VSTS做压力测试

    1 前言 1.1 目的 本文档主要介绍如何在VSTS环境中进行LoadTest测试,给测试人员和初次使用者提供参考. 对该工具进行LoadTest测试的优劣进行简单的分析说明. 1.2 软件版本 本文 ...

  4. Intent传值之通过Application传值

    传值第五种方式: * 程序的全局变量application * 特点:1.一个程序application对象只能有一个 * 2.application对象在程序启动时就创建 * 3.通常用来存放全局变 ...

  5. onsubmit表单验证

    <script type="text/javascript"> function check(){ var username=document.getElementBy ...

  6. Leetcode 102. Binary Tree Level Order Traversal(二叉树的层序遍历)

    Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, ...

  7. 新建的linux虚拟机找不到eth0解决办法

    新建的linux虚拟机通过 vi /etc/sysconfig/network-scripts/ifcfg-eth0进行配置: 再用ifconfig查看ip竟然没有eth0,只有lo和virbr0 其 ...

  8. VBA文件处理

    Option Explicit ' ▽▽▽▽▽▽▽▽▽▽▽▽▽▽▽▽▽▽ ' Excel对象 ' △△△△△△△△△△△△△△△△△△ ' Open Public Function FileOpen_ ...

  9. c# 单例模式[Singleton]之深夜闲聊

    都有点记不起认识单例模式(也有叫单件模式的)是在什么时候了,有时候东西认多了不常用的话也经常抛之脑后甚至逐渐从大脑里被移除.不闲扯了,直接入正题吧. 什么是单例模式? 保证在整个应用程序的生命周期中, ...

  10. IIS6.0、IIS7中的站点、应用程序和虚拟目录详细介绍

    这里说的不是如何解决路径重写或者如何配置的问题,而是阐述一下站点(site),应用程序(application)和虚拟目录 (virtual directory)概念与作用,已及这三个东西在IIS6与 ...