Menu question
I have about 75 pages in the project, but only really two looks. First page and everything else.
So naturally i created two page templates and stuck all the navigation in there, so that all pages have it ready.
I put a top nav bar at the top with some 5 items, and a side one that has all the sub-menus.
This is where i can't quite get it to work the way i want. I would like the side menu to never show the top items since they are already in the top area. In other words if the user is anywhere within the home section, i want the side menu to show everything that is under Home.
There appear to be 3 choices only either show everything, including the top level, show everything under the currently selected item. Or show everything under a specific page.
Naturally i could simply put the navigation in each page and make it show everything from a selected page, or make 6 templates and assign the pages to one of the templates.
But if i then move the page from one section to another i will need to edit the menu or assign a different template to it. I would rather have this work more dynamically.
Is there a way i can keep just one template and somehow set the menu to show all in the currently selected section apart of the top item?
Dear Andrew I use RadControls for this.
Sounds like a good plan.
However i cannot find how to activate those RadControls.
Dear Andrew
Glad you found it. For others who did not find it right away see screenshot.
That worked like a dream.
Thanks Markus, du bist ein Genie
Dear Andrew
I have one more question.
Do you know if i can disable the collapse functionality?
I want to have all the item extended. All open in essence.
Is that possible with the panel?
I have been looking at the Telerik demos but can't see an example there.
Dear Andrew
<script type=
"text/javascript"
>
function
CollapseAllItems()
var
panelbar = <%= RadPanelbar1.ClientID %>
for
(
var
i=0; i<panelbar.AllItems.length; i++)
panelbar.AllItems[i].Expand();
</script>
Thanks Again.
I will try this.
Can't get it to work. I tried putting a script widget with this:
var
panelbar= document.getElementById(
"T1CF96E6D009"
);
for
(
var
i=0; i<panelbar.AllItems.length; i++)
panelbar.AllItems[i].Expand();
var
panelbar= document.getElementById(
"T1CF96E6D009"
);
for
(
var
i = 0; i < panelbar.get_allItems().length; i++)
if
(panelbar.get_allItems()[i].get_items().get_count != 0)
panelbar.get_allItems()[i].set_expanded(
true
);
var
panelbar= document.getElementById(
"T1CF96E6D009"
);
for
(
var
i = 0; i < panelBar.get_allItems().length; i++)
panelBar.get_allItems()[i].expand();
Dear Andrew
@Markus
Just a quick message to say thank you very much Markus for this - a very useful tip indeed. I was scratching around for ages to replicate this when it was really very simple, once the rad controls were revealed.
Thanks again Markus.