zoukankan      html  css  js  c++  java
  • EasyUI detailview 使用心得

    view: detailview,
    detailFormatter: function (rowIndex, rowData) {
    return "<div class='easyui-panel' style='height:100px;overflow-y:auto;'></div>";
    },
    onExpandRow: function (index, row) {
    var ddv = $(this).datagrid('getRowDetail', index).find('div.easyui-panel'); //在这一行中找到class="ddv"的div
    ddv.panel({
    border: false,
    cache: true,
    href: '',
    onLoad: function (data) {
    $("#top_table").datagrid('fixDetailRowHeight', index); //固定高度
    $('#top_table').datagrid('selectRow', index);
    }
    })
    $('#top_table').datagrid('fixDetailRowHeight', index); //加载之后固定高度
    }

    /**  需要注意的是   如果想让明细数据和datagrid列表每列宽度对应起来,需使用datagrid中列解析出的样式  **/

    build.Append("<tr><td align='center' style='100px;border:0'><div class="datagrid-cell datagrid-cell-c1-UserName" style="text-align: center;"><span>" +kkk+ "</span></div></td>");
    build.Append("<td align='center' style='65px;border:0'><div class="datagrid-cell datagrid-cell-c1-sum_Salaries" style="text-align: center;"><span>" + kkkk+ "</span></div></td>");

  • 相关阅读:
    hdu 5045 Contest
    hdu 4068 SanguoSHA
    TSP 旅行商问题(状态压缩dp)
    haoi2015 树上操作
    noi 2015 软件包管理器(树链剖分)
    zjoi2008 树链剖分
    读入优化
    动态规划类型总结
    有关Rujia Liu 动态规划的·一些总结
    输入优化
  • 原文地址:https://www.cnblogs.com/herf/p/5051975.html
Copyright © 2011-2022 走看看