jQuery MiniUI

标题: 我要在点击 其中某一行“”登记人数 “修改该 获取改行的 [打印本页]

作者: liujun_0104    时间: 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>
我要在点击 其中某一行“”登记人数 “修改该  获取改行的申请月份的值;


作者: dforce    时间: 2015-5-18 14:42:10

grid.on("cellclick",funciton(e){
  if(e.field=="myrs"){
     alert(e.record.mydate)
  }
})




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2