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

Disable panel sections

4 Answers 121 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 2
Andy Green asked on 05 Apr 2013, 04:16 PM
Hi

Is it possible to disable the content area of a PanelBar ie the RadPanelItem section., such that anything in the content are cant be clicked, but the sections can be expanded and collapsed.

Andy

4 Answers, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 08 Apr 2013, 03:46 PM
Hello,

An easy and convenient way of achieving this functionality would be set all sub items Enabled property to false as shown in the code snippet:
//markup code
<telerik:RadPanelBar ID="RadPanelBar1" runat="server">
    <Items>
        <telerik:RadPanelItem Text="Item 1">
            <Items>
                <telerik:RadPanelItem Text="Item 1" Enabled="false"></telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Item 2" Enabled="false"></telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Item 3" Enabled="false"></telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelItem>
        <telerik:RadPanelItem Text="Item 2"></telerik:RadPanelItem>
        <telerik:RadPanelItem Text="Item 3"></telerik:RadPanelItem>
    </Items>
</telerik:RadPanelBar>



Regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Andy Green
Top achievements
Rank 2
answered on 08 Apr 2013, 03:55 PM
Unfortunately this doesn't do what I need. If you set enable=false here you can't hide and show the area, I want to be able to still expand & hide the panel.

I have places all content in a panel control and set the panel enable=false. Just would have been cool if I could have done it with the control.

Andy
0
Boyan Dimitrov
Telerik team
answered on 10 Apr 2013, 02:20 PM
Hello,

Indeed if you set the parent item property Enabled to false, this will disable the expand & hide functionality of the parent item. Therefore I have set Enabled to false to its child items, so the parent item still could be expanded and collapsed. If this is not the functionality that you want to achieve, please elaborate a bit more on your scenario. Could you please clarify what exactly is your parent item's content that you want to disable?


Regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Andy Green
Top achievements
Rank 2
answered on 11 Apr 2013, 08:04 AM
Ah I see what you have done, yes that's it. Sorry a bit manic here with loads of open questions,

Andy
Tags
PanelBar
Asked by
Andy Green
Top achievements
Rank 2
Answers by
Boyan Dimitrov
Telerik team
Andy Green
Top achievements
Rank 2
Share this question
or