3

これが私のコードです

  var dlg = $("#transfer_client").dialog({
                dialogClass: "templateDialog",
                autoOpen: false,
                modal: true,
                zIndex: 1500,
                height: 200,
                width: 200,
                title: "Transfer Campaign to a different Client"
            });

        dlg.parent().appendTo(jQuery("form:first"));

transfer_client の div コードは次のとおりです。

 <div id="transfer_client" class="dialog position" title="Transfer to a different Client">
    <span>Client:</span>
    <asp:DropDownList runat="server" Height="30px" ID="ddlClients" DataTextField="ClientName"
        DataValueField="ClientID">
    </asp:DropDownList>
    <br />
    <br />
    <asp:Button runat="server" OnClientClick="return confirmSubmit();" ID="btnTranfer"
        Text="Transfer" OnClick="btnTranfer_Click" />
</div>

$("#dropDownID").chosen()、後または前に試しましたが、dlg.parent().appendTo(jQuery("form:first")); 検索可能になりません。ただし、ダイアログなしで使用すると、コードは正常に機能します。ダイアログ内で機能させる方法はありますか?

編集:これはダイアログ js のバグであったため、解決済みとしてマークします。

4

2 に答える 2

2

githubの issue #18 をご覧になりましたか?

それは私の同様の問題を解決し、基本的に検索ボックスの CSS を増やすことになりますz-index

于 2012-06-06T10:08:52.560 に答える
0

これを試して

.chosen-container .chosen-results {
    position: fixed;
    z-index: 23423423423;
    height: 200px;
    width: 300px;
    background-color: white;
}
于 2015-02-20T07:00:05.883 に答える