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

Enabling PanelBarItems does not enable all controls

3 Answers 70 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 01 Dec 2009, 02:09 PM
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.

3 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 01 Dec 2009, 10:54 PM
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; 
    } 

0
Seth
Top achievements
Rank 1
answered on 15 Jan 2010, 08:21 PM
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
0
Yana
Telerik team
answered on 18 Jan 2010, 04:03 PM
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.
Tags
PanelBar
Asked by
Seth
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Seth
Top achievements
Rank 1
Yana
Telerik team
Share this question
or