This question is locked. New answers and comments are not allowed.
I have code like this:
Now, I thought that by adding the Action method onto the parent items, I would be able to use those parent items as links as well as click on their arrows to expand/collapse the section. But, no matter where I click on the parent bar, it only expands/collapses. Is there a way to use it as a link also?
Thanks
@{ Html.Telerik().PanelBar() .Name("BrowsePanelBar") .ExpandMode(PanelBarExpandMode.Single) .Items(parent => { parent.Add() .Text("Books") .Action("Index","Books") .Content( @<text> <div class="divBrowseDetails"> <ul class="ulBrowseCat"> <li><a href="#">Books</a></li> <li><a href="#">EBooks</a></li> <li><a href="#">Series</a></li> <li><a href="#">New Arrivals</a></li> <li><a href="#">Top Sellers</a></li> </ul> </div> </text>) .Expanded(true); parent.Add() .Text("Bibles") .Action("Index", "Bibles") .Content( @<text> <div class="divBrowseDetails"> <ul class="ulBrowseCat"> <li><a href="#">Bibles</a></li> <li><a href="#">New Arrivals</a></li> <li><a href="#">Top Sellers</a></li> <li><a href="#">Bible Finder</a></li> <li><a href="#">Bible Translation Guide</a></li> </ul> </div> </text>); }) .Render();}Now, I thought that by adding the Action method onto the parent items, I would be able to use those parent items as links as well as click on their arrows to expand/collapse the section. But, no matter where I click on the parent bar, it only expands/collapses. Is there a way to use it as a link also?
Thanks