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:
And the code behind:
Thanks,
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,