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
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
0
Accepted
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
Regards,
Boyan Dimitrov
the Telerik team
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
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
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
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
Andy