Disable panel sections

5 posts, 1 answers
  1. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 05 Apr 2013 Link to this post

    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

  2. Answer
    Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 08 Apr 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 08 Apr 2013 Link to this post

    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
  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 10 Apr 2013 Link to this post

    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.
  6. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 11 Apr 2013 Link to this post

    Ah I see what you have done, yes that's it. Sorry a bit manic here with loads of open questions,

    Andy
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017