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

issue with RadComboBox and asp panels

3 Answers 118 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
EmpowerIT
Top achievements
Rank 2
EmpowerIT asked on 25 Mar 2008, 04:47 AM
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,

3 Answers, 1 is accepted

Sort by
0
Accepted
Rosi
Telerik team
answered on 25 Mar 2008, 06:24 AM
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
0
EmpowerIT
Top achievements
Rank 2
answered on 25 Mar 2008, 10:26 PM
Hi,
Yes that fixed the problem. When will this fix be incorporated into the development build?
0
Rosi
Telerik team
answered on 26 Mar 2008, 08:40 AM
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
Tags
ComboBox
Asked by
EmpowerIT
Top achievements
Rank 2
Answers by
Rosi
Telerik team
EmpowerIT
Top achievements
Rank 2
Share this question
or