• easyui-datagrid 列单击事件


    首先要注意的就是,先添加一个js方法,名字可以自定义,但是必须得与下面的option里面的onClickRow:后面的一致即可
        
    <script type="text/javascript">
            function ClickRow(rowIndex, rowData) {
                //            alert('这是Name:' + rowData.Name + '这个是ID:' + rowData.ID);            
                if (rowData.ModuleModel == 'DDS3366L') {
                    document.getElementById("Archives").src = "real-time/ArchivesForE_P.aspx?ModuleID=" + rowData.ID;
                }
            } 
        </script>
     
    在table的option里头加上OnClickRow方法
    <table id="List" class="easyui-datagrid" title="字典类型列表" style="width: 310px; height: 800px;
                margin: 0 0 0 0; float: left;" data-options="rownumbers:true,fitColumns:true,pagination:true,pageSize:20,pagePosition:'top',onClickRow:ClickRow,striped:true,singleSelect:true,url:'dit_Itemlist.aspx?from=sel'">
                <thead>
                    <tr>
                        <th data-options="field:'BookName',sortable:true,80,align:'center'">
                            名称
                        </th>
                    </tr>
                </thead>
            </table>




  • 相关阅读:
    粗看ES6之函数
    粗看ES6之变量
    https微信分享看不到图片的坑
    关于WebStorm,PhpStorm新版本输入中文问题
    ios下表单disabled样式重置
    关于IE的一些hack
    来自语文老师的教诲
    DP专题
    对近期参加的所有比赛的简略整理和好的idea的收集
    网络流学习
  • 原文地址:https://www.cnblogs.com/nangong/p/d00210b7cff95076047c58e758bd8fac.html
Copyright © 2020-2023  润新知