简体   繁体   English

A jax组合框按钮未显示在j查询UI的选项卡中

[英]AJAX Combobox button not displayed within the j query UI's tab

When i populate the combobox outside the tab of jquery UI it works fine. 当我在jQuery UI选项卡之外填充组合框时,它可以正常工作。 But when the same is done within the tab, the dropdown button of CB is not displayed and also the dropdown list is not visible. 但是,在选项卡中执行相同操作时,不会显示CB的下拉按钮,并且下拉列表也不可见。 I'm new to using Javascript. 我是使用Java的新手。 can anyone help me in this regard. 谁能在这方面帮助我。

<script type="text/javascript" src="jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.8.16.custom.min.js"></script>                          

<script type="text/javascript">

        $(function () {
            $("#tabs").tabs();
        });
</script>

         ............

    <div id="tabs-3">
         <asp:ComboBox ID="ComboBox2" runat="server" AppendDataBoundItems="True"  
            DataSourceID="SqlDataSource1" DropDownStyle="DropDownList"  
            AutoCompleteMode="SuggestAppend" DataTextField="display_name" 
            DataValueField="display_name" style="display: inline;" 
           AutoPostBack="True" MaxLength="0" Visible="true">

        </asp:ComboBox>


    </div>

To do this within your jQuery tabs look for the CSS file that contains the JQuery tabs styles. 为此,请在jQuery选项卡中查找包含JQuery选项卡样式的CSS文件。 Look for 寻找

.ui-tabs .ui-tabs-hide 

and change the 并更改

display: none 

to

position: absolute; left: -10000px;

This worked for me by stopping the Inline Style on the asp/ajax/any control being put to 'display: none' 这对我来说是有效的,方法是停止将asp / ajax /任何控件上的“内联样式”设置为“显示:无”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM