Enabling PanelBarItems does not enable all controls

4 posts, 0 answers
  1. Seth
    Seth avatar
    66 posts
    Member since:
    Oct 2009

    Posted 01 Dec 2009 Link to this post

    I am creating a wizard similiar to the demo on the Telerik site:

    http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/accessingnestedcontrols/defaultcs.aspx

    So far it all works great except that when I enable a PanelBarItem, none of my RadComboBoxes get enabled.  My code is almost exactly like the code shown in the demo.  My template(s) consist of tables with my controls in the cells of the tables.

    Thanks.
  2. Schlurk
    Schlurk avatar
    812 posts
    Member since:
    May 2009

    Posted 01 Dec 2009 Link to this post

    I used the following code and box checkboxes became disabled/enabled when I clicked on the button, perhaps there is something you are missing?

    ASPX:
        <asp:Button ID="mybutton" runat="server" Text="Button" OnClick="mybutton_OnClick" /> 
        <br /> 
        <telerik:RadPanelBar ID="RadPanelBar1" runat="server"
            <Items> 
                <telerik:RadPanelItem runat="server" Text="Root RadPanelItem1"
                    <Items> 
                        <telerik:RadPanelItem runat="server" Text="Child RadPanelItem 1"
                            <ItemTemplate> 
                                <table> 
                                    <tr> 
                                        <td> 
                                            <asp:CheckBox ID="myCheckBox" runat="server" Text="Check Me"/> 
                                        </td> 
                                        <td> 
                                            <asp:CheckBox ID="secondBox" runat="server" Text="Second" /> 
                                        </td> 
                                    </tr> 
                                </table> 
                            </ItemTemplate> 
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelBar> 


    C#:
        protected void mybutton_OnClick(object sender, EventArgs e) 
        { 
            RadPanelBar1.Items[0].Items[0].Enabled = !RadPanelBar1.Items[0].Items[0].Enabled; 
        } 

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Seth
    Seth avatar
    66 posts
    Member since:
    Oct 2009

    Posted 15 Jan 2010 Link to this post

    Sorry, I never saw this response.

    I don't see the problem with all controls, but specifically with ComboBoxes.  If you put combo boxes in your Item Template, do you see the problem I am reporting?

    Seth
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 18 Jan 2010 Link to this post

    Hi Seth,

    This is a known issue in RadComboBox which is logged and will be fixed. Your report raises it priority. For now, please enable the combobox separately.

    Kind regards,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top