jQuery MiniUI

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

popup 怎么隐藏 [复制链接]

Rank: 2

跳转到指定楼层
楼主
发表于 2014-9-2 10:11:41 |只看该作者 |倒序浏览
我做了一个类似lookup功能(主要是lookup不能自己输入)
我想请问一下当我双击datagrip列表row时,在填充数据的同时,如何关闭popup。
<input id="xm" name="cg.xm" style="width: 100%;" class="mini-popupedit" popupWidth="320" popupHeight="220" popup="#oftenguestctx" required="true" maxLength="10" />
                              <div id="oftenguestctx" class="mini-panel" title="header" iconCls="icon-add" style="width: 100%; height: 100%" showToolbar="true" showCloseButton="true" showHeader="false" bodyStyle="padding:0" borderStyle="border:0">
                                 <!--toolbar-->
                                 <div property="toolbar" style="padding: 2px;">
                                    <input id="zjhm" name="cg.zjhm" class="mini-textbox" style="width: 250px;" required="true" maxLength="18" emptyText="---" />
                                    <a id="btnsave" class="mini-button" iconCls="icon-save" plain="false">--</a>
                                 </div>
                                 <div id="xmpopup" class="mini-datagrid" style="width: 100%; height: 100%;" borderStyle="border:0" showPageSize="false" showPageIndex="false" showReloadButton="false" showPageInfo="false" fitColumns="true" url="/h/queryog.action">
                                    <div property="columns">
                                       <div type="indexcolumn" width="20" headerAlign="center"></div>
                                       <div field="xm" width="80">
                                          --
                                       </div>
                                       <div field="xb" width="32">
                                         ---
                                       </div>
                                       <div field="zjhm" width="120">
                                          --
                                       </div>
                                    </div>
                                 </div>
                              </div>


Rank: 8Rank: 8

沙发
发表于 2014-9-2 10:28:17 |只看该作者
var edit=mini.get("xm");
grid.on("rowdblclick",function(e){
      .......填充数据
      edit.hidePopup();
})

Rank: 2

板凳
发表于 2014-9-2 10:43:37 |只看该作者
felt 发表于 2014-9-2 10:28
var edit=mini.get("xm");
grid.on("rowdblclick",function(e){
      .......填充数据

谢谢,,OK了。

Archiver|普加软件

GMT+8, 2025-7-17 06:10 , Processed in 1.039432 second(s), 9 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部