issue with RadComboBox and asp panels

4 posts, 1 answers
  1. EmpowerIT
    EmpowerIT avatar
    117 posts
    Member since:
    Jun 2007

    Posted 24 Mar 2008 Link to this post

    Hi,
    I have a simple page with a panel which contains a RadComboBox. When i dynamically set the panel to enable=false, the combo box also gets disabled appropriately. When i try to set the panel back enable=true, the combo box does not get re enabled.
    I tried this with other Prometheus controls (i.e RadGrid), and they have behaved correctly

    Here is this code to replicate this:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="PanelComboTest.aspx.cs" Inherits="PanelComboTest" %> 
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <html xmlns="http://www.w3.org/1999/xhtml" > 
    <head runat="server"
        <title>Untitled Page</title> 
    </head> 
    <body> 
        <form id="form1" runat="server"
            <asp:ScriptManager ID="ScriptManager1" runat="server"
            </asp:ScriptManager> 
         
        <asp:RadioButtonList ID="radioList" runat="Server" AutoPostBack="true"
        <asp:ListItem Text="disable" Value="0"></asp:ListItem> 
        <asp:ListItem Text="enable" Value="1"></asp:ListItem> 
        </asp:RadioButtonList> 
         
        <div> 
        <asp:Panel ID="myPanel" runat="server"
            <telerik:RadComboBox ID="RadComboBox1" runat="server" RadComboBoxImagePosition="Right"
            <Items> 
            <telerik:RadComboBoxItem Text="item1" Value="1" runat="server" /> 
            <telerik:RadComboBoxItem Text="item2" Value="2" runat="server" /> 
            </Items> 
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
                <ExpandAnimation Type="OutQuart" /> 
            </telerik:RadComboBox> 
        </asp:Panel> 
        </div> 
        </form> 
    </body> 
    </html> 

    And the code behind:
    using System; 
    using System.Data; 
    using System.Configuration; 
    using System.Collections; 
    using System.Web; 
    using System.Web.Security; 
    using System.Web.UI; 
    using System.Web.UI.WebControls; 
    using System.Web.UI.WebControls.WebParts; 
    using System.Web.UI.HtmlControls; 
     
    public partial class PanelComboTest : System.Web.UI.Page 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            this.radioList.SelectedIndexChanged += new EventHandler(radioList_SelectedIndexChanged); 
            if (!this.IsPostBack) 
            { 
                radioList.SelectedIndex = 0; 
                myPanel.Enabled = false
            } 
        } 
     
        void radioList_SelectedIndexChanged(object sender, EventArgs e) 
        { 
            if (radioList.SelectedValue == "0"
            { 
                myPanel.Enabled = false
            } 
            else 
            { 
                myPanel.Enabled = true
            } 
        } 
     

    Thanks,
  2. Answer
    Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 25 Mar 2008 Link to this post

    Hi EmpowerIT,

    Please find attached the latest internal build of the control. This should solve the problem.
     
    Give it a try and let us know how it goes.

    Regards,
    Rosi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. EmpowerIT
    EmpowerIT avatar
    117 posts
    Member since:
    Jun 2007

    Posted 25 Mar 2008 Link to this post

    Hi,
    Yes that fixed the problem. When will this fix be incorporated into the development build?
  5. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 26 Mar 2008 Link to this post

    Hello EmpowerIT,

    The fix will be included in the next official release of "Prometheus" suite which will be released in the middle of next month.

    Also, we can send you a dev version of the internal build if you open a support ticket and request it.

    Regards,
    Rosi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top