I am having a bug reported to me about the behavior of our implementation of the Telerik Panel Bar. When the end-user is viewing a page, we have a visual indication to let them know where they are. (text is bold)
The problem comes with the user collapses a parent node, and then expands it again. The style sheet is no longer applied to the original node. I took this down to the bare bones and created a new web solution with nothing else except a panel bar and a Web.Sitemap. I choose a skin "Golden" so that I could tell the difference between a selected and unselected node. The problem was still present.
Is there a way to get the Rad Panel Bar to remember that a node is selected when it contracts/expands?
We are using RadControls for ASP.NET Q3 2007 for the 2.0 framework with RadPanelbar.Net2.dll version 4.3.2.0.
Create a Web.Sitemap
Create default page
My test:
The problem comes with the user collapses a parent node, and then expands it again. The style sheet is no longer applied to the original node. I took this down to the bare bones and created a new web solution with nothing else except a panel bar and a Web.Sitemap. I choose a skin "Golden" so that I could tell the difference between a selected and unselected node. The problem was still present.
Is there a way to get the Rad Panel Bar to remember that a node is selected when it contracts/expands?
We are using RadControls for ASP.NET Q3 2007 for the 2.0 framework with RadPanelbar.Net2.dll version 4.3.2.0.
Create a Web.Sitemap
<?xml version="1.0" encoding="utf-8" ?> | |
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > | |
<siteMapNode title="Root Node"> | |
<siteMapNode url="default.aspx" title="Home" /> | |
</siteMapNode> | |
</siteMap> |
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> | |
<%@ Register Assembly="RadPanelbar.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" > | |
<head runat="server"> | |
<title>Untitled Page</title> | |
</head> | |
<body> | |
<form id="form1" runat="server"> | |
<div> | |
<rad:RadPanelbar Skin="Golden" ID="RadPanelbar1" runat="server" DataSourceID="SiteMapDataSource1"> | |
</rad:RadPanelbar> | |
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" /> | |
</div> | |
</form> | |
</body> | |
</html> |
My test:
- Run the application.
- Notice "Home" is selected (white underline).
- Click "Root Node" to hide "Home".
- Click "Root Note" to show "Home".
- Notice that "Home" is no longer selected (black no-underline)