我正試圖在引導模式對話框上放置RadDropDownTree telerik Web UI控件。 我遇到的問題是,放置在 對話框中的下拉樹的過濾文本框無法接收任何用戶輸入。請看下面的代碼片段:將RadDropDownTree放置在引導模式對話框內
<telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
<!-- Button trigger modal -->
<a class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</a>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
<telerik:RadDropDownTree ID="RadDropDownTree2" runat="server" EnableFiltering="True" FilterSettings-EmptyMessage="i can't text anything here" >
</telerik:RadDropDownTree>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
我確實看到你也在Telerik論壇上問過這個問題(http://www.telerik.com/forums/radumsdowntree-in-bootstrap-modal),但是真的解決了這個問題嗎?我有同樣的情況,並且使用「可見性:隱藏」而不是「隱藏」類代碼來掙扎代碼。例如,我不能使用data-target/data-dismiss,並且不會顯示背景。你有沒有找到任何其他解決方案? – Nurp
@Nurp我們使用了Magdalena在她在Telerik論壇上發表的文章。它爲我們工作得很好。 –