This is a migrated thread and some comments may be shown as answers.

RadCombobox Disabled on RadAjaxPanel

6 Answers 234 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Steve Todd
Top achievements
Rank 1
Steve Todd asked on 05 Aug 2009, 03:34 PM
Hi

I have a number of cases where I have used RadAjaxPanel populated with various controls. If the panel is visible when the page opens the combobox on the panel is enabled, however if the RadAjaxPanel is not visible when the page is loaded, is made visible by the click of a button, the RadComboBox is not enabled and does not respond to a click. Textbox and button controls work fine on the panel.

Hope you can help ... deadline looming :-(

Steve

6 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 06 Aug 2009, 08:17 AM
Hello Steve Todd,

I could not reproduce the problem in a simple test:

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Visible="false"
    <telerik:RadComboBox ID="RadComboBox1" runat="server"
        <Items> 
            <telerik:RadComboBoxItem Text="item" /> 
            <telerik:RadComboBoxItem Text="item" /> 
            <telerik:RadComboBoxItem Text="item" /> 
            <telerik:RadComboBoxItem Text="item" /> 
            <telerik:RadComboBoxItem Text="item" /> 
            <telerik:RadComboBoxItem Text="item" /> 
            <telerik:RadComboBoxItem Text="item" /> 
            <telerik:RadComboBoxItem Text="item" /> 
        </Items> 
    </telerik:RadComboBox> 
</telerik:RadAjaxPanel> 
 
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> 

protected void Button1_Click(object sender, EventArgs e) 
    RadAjaxPanel1.Visible = true

What is different in your case?

Sincerely yours,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Steve Todd
Top achievements
Rank 1
answered on 06 Aug 2009, 09:28 AM
This particular ajax panel spans over 2 RadPanes

<telerik:RadAjaxPanel runat="server" ID="raxpCustEdit" 
                                    EnableAJAX="True" 
                                    LoadingPanelID="RadAjaxLoadingPanel2" 
                                    Visible="false" > 
        <div id="div1" class="DivPopupLge" runat="server">  
            <table cellpadding="0" cellspacing="0" border="0" style="width:100%">  
                <tr height="35px">  
                    <td class="TableHeader">  
                        <asp:Label ID="lblCustEditHdg" runat="server" SkinID="LabelHdg" Text="Change Customer" />          
                    </td> 
                </tr> 
            </table> 
            <table cellpadding="2" cellspacing="0" border="0" style="width:100%">  
                <tr> 
                    <td> 
                        <asp:Label ID="lblCustEditText" runat="server" SkinID="LabelSml" Text="Select the customer from the drop down box" /> 
                    </td> 
                </tr>              
                <tr> 
                    <td style="width:100%">  
                        <table cellpadding="0" cellspacing="0" style="width:100%" border="0">  
                            <tr> 
                                <td style="width:5%">  
                                    &nbsp;  
                                </td> 
                                <td>    
                                    <telerik:RadComboBox runat="server" ID="rcboCustEdit" 
                                                                EmptyMessage="Select Customer" 
                                                                Enabled="true"   
                                                                Height="300px" 
                                                                Skin="Outlook"   
                                                                Width="150px">  
                                                                <Items> 
                                                                    <telerik:RadComboBoxItem Value="1" Text="1" /> 
                                                                    <telerik:RadComboBoxItem Value="2" Text="2" /> 
                                                                </Items> 
                                    </telerik:RadComboBox> 
                                </td> 
                                <td style="width:5%">  
                                    &nbsp;  
                                </td> 
                            </tr> 
                        </table>                              
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        <br /> 
                    </td> 
                </tr> 
                <tr> 
                    <td style="width:100%;background-color:White;">  
                        <table cellpadding="0" cellspacing="0" style="width:100%" border="0">  
                            <tr> 
                                <td> 
                                    <asp:Button runat="server" ID="btnEditCustOK" SkinID="BtnSml" Text="Select" OnClick="btnEditCustOK_Click" /> 
                                </td> 
                                <td align="right">  
                                    <asp:Button runat="server" ID="btnEditCancel" SkinID="BtnSmlCancel" Text="Cancel" OnClick="btnEditCustCancel_Click" /> 
                                </td> 
                            </tr> 
                        </table> 
                    </td> 
                </tr> 
            </table> 
        </div>                                                                    
    </telerik:RadAjaxPanel> 

the style sheet DivPopUpLge is as below which positions the ajax panel at a specific location. I thought the z-order may have an impact but I've tried it without and still have disabled combobox

.DivPopupLge  
{  
    border:solid 1px #C0C0C0;  
    background-color:#FFFFFF;  
    height:300px;  
    left: 50px;   
    position:absolute;   
    top: 50px;  
    width: 500px;  
    z-index:100;   

Does this help?

Regards

Steve
0
Veselin Vasilev
Telerik team
answered on 06 Aug 2009, 12:04 PM
Hi Steve Todd,

I tried your code and the combobox worked fine after the panel was made visible. I suggest that you open a support ticket and attached a sample running project where we can observe the problem.

Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Steve Todd
Top achievements
Rank 1
answered on 07 Aug 2009, 08:06 AM
I've done a bit more digging. If I remove this Ajax setting then the combo boxes work fine. btnEditCust just makes the panel visible i.e. 

raxpCustEdit.Visible =

true;

 



               <telerik:AjaxSetting AjaxControlID="btnEditCust">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="raxpCustEdit" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 

If you guys try this can you recreate the problem?

Regards

Steve
0
Veselin Vasilev
Telerik team
answered on 07 Aug 2009, 11:12 AM
Hi Steve Todd,

Why do you need this settings? I thought you are using RadAjaxPanel and not RadAjaxManager. The panel does not need such settings.

All the best,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Steve Todd
Top achievements
Rank 1
answered on 07 Aug 2009, 12:05 PM
I haven't had a lot of time to study the Ajax bits and peices so it's pretty much trial and error at the moment.

I thought that if you want controls affected in an Ajax fashion they have to be referenced using the Ajax manager to avoid the flicker and round trip? Using the code as I have gives me a seemless display of the panel but removing the Ajax Setting makes the page round trip. 

Is there a way to get the page not to round trip utilising the Ajax technology.

Regards

Steve
Tags
ComboBox
Asked by
Steve Todd
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Steve Todd
Top achievements
Rank 1
Share this question
or