Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in DotNetNuke > Enhancement for DNN Panelbar Control fort Siblings

Not answered Enhancement for DNN Panelbar Control fort Siblings

Feed from this thread
  • Posted on Jan 17, 2012 (permalink)

    Scenario

    I Have 3 levels in a structure  as follows (apologies for using html but it was easier as there is no indent in the editor)
    <ul>
        <li>Root 1<ul>
            <li>Product 1<ul>
                <li>Overview</li>
                <li>Specs</li>
                <li>Requirements</li>
            </ul>
            </li>
            <li>Product 2<ul>
                <li>Overview</li>
                <li>Specs</li>
                <li>Requirements</li>
            </ul>
    </li>
            <li>Product 3<ul>
                <li>Overview</li>
                <li>Specs</li>
                <li>Requirements</li>
            </ul>
    </li>
        </ul>
        </li>
        <li>Root 2</li>
        <li>Root 3</li>
     
    </ul>

    There is a rad menu set to only show 2 levels horizontally at the top of a page.

    When on the 3rd level lets say the Overview Page of Product 1 i wish to display only the (siblings) or (parent and siblings)
    so panelbar items should be either Overview, Specs, Requirements OR Product 1, Overview, Specs, Requirements to the left as a menu showing related pages to the one you are on, you are then able to navigate around the siblings showing the same menu.

    After reviewing the api for this control there does not appear to be a nice easy way of achieving this so that only the above items are shown.  You can

    • use the ShowOnlyCurrent set to PageItem:Whatever but unfortunately this means creating a skin for each different second level menu item (in my case product 1, product 2 etc) specifying a different showonlycurrent value OR creating multiple containers with the radpanelbar in doing the exact same technique.  Obviously this is bad when the users are adding new menu items all the time
    • use the RootItem value and then exclude all the other items from product 2 and product 3 (tedious) and same issue with adding new menu items
    • Can't use CurrentItems because this shows itself and its children and you want to see siblings
    • Can't use Childitems for obvious reasons.

    I suggest 2 more values or similar be added to the ShowOnlyCurrent Attribute:

    • "SiblingItems" which shows siblings under the same parent to be shown even when navigating around the sibling pages and
    • "ParentItems" Which is the same as above but includes the parent at the top.

    If i have made an error in the above let me know otherwise it would be great to add to your enhancements list.

    Cheers Marcus

    Reply

  • Peter Peter admin's avatar

    Posted on Jan 20, 2012 (permalink)

    Hi Marcus,

    Thank you for your suggestions. We will consider them.

    Setting ShowOnlyCurrent="RootItem" will bring about behavior that is closest to your requirement, event though not quite the same.

    All the best,
    Peter
    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in DotNetNuke > Enhancement for DNN Panelbar Control fort Siblings