jQuery MiniUI

 找回密码
 立即注册
查看: 2012|回复: 1
打印 上一主题 下一主题

我要在点击 其中某一行“”登记人数 “修改该 获取改行的 [复制链接]

Rank: 2

跳转到指定楼层
楼主
发表于 2015-5-18 14:29:54 |只看该作者 |倒序浏览

      <div id="datagrid3" class="mini-datagrid"
                         style="width: 100%; height:180px" allowResize="true" idField="id" pageSize="5"  allowCellEdit="true"
                          allowCellSelect="true" multiSelect="true"      editNextOnEnterKey="true"  editNextRowCell="true"
                           showPager="true">
                        <div property="columns">
                            <div name="mydate1"  field="mydate" width="100" headerAlign="center" dateFormat="yyyy-MM-dd" allowSort="true">申请月份
                            </div>
                            <div name="myje1" field="myje" width="100" width="100"  headerAlign="center" >本月房租
                            </div>
                            <div  name="myrs1" field="myrs" width="100" headerAlign="center"> 登记备案人数  
                            </div>
                            <div  name="mydjbars1" field="mydjbars" width="100" headerAlign="center"> 从业人数
                                <input property="editor" class="mini-textbox" style="width:100%;" minWidth="200" />
                            </div>
                        </div>
                    </div>
                    </div>
我要在点击 其中某一行“”登记人数 “修改该  获取改行的申请月份的值;

Rank: 8Rank: 8

沙发
发表于 2015-5-18 14:42:10 |只看该作者
grid.on("cellclick",funciton(e){
  if(e.field=="myrs"){
     alert(e.record.mydate)
  }
})

Archiver|普加软件

GMT+8, 2024-9-29 19:30 , Processed in 1.045595 second(s), 10 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部