This is a migrated thread and some comments may be shown as answers.

Item not showing

0 Answers 91 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
scrut
Top achievements
Rank 1
scrut asked on 04 Jul 2008, 01:47 PM
Hi
I use the RadPanelBar to display a simple menu which is fed by a sitemap datasource:
<telerik:RadPanelBar ID="RadPanelBarMenu" runat="server" DataSourceID="SiteMapDataSource" Width="200px" Font-Bold="True" Skin="Telerik">  
    <CollapseAnimation Duration="100" Type="None" /> 
    <ExpandAnimation Duration="100" Type="None" /> 
</telerik:RadPanelBar> 

Security trimming is enabled:
        <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">  
            <providers> 
                <add name="XmlSiteMapProvider" description="Default SiteMap provider." type="System.Web.XmlSiteMapProvider " siteMapFile="Web.sitemap" securityTrimmingEnabled="true"/>  
            </providers> 
        </siteMap> 
        <authentication mode="Forms">  
            <forms name=".SATAUTH" loginUrl="Login.aspx" protection="All" timeout="60" path="/" slidingExpiration="true" requireSSL="false" defaultUrl="Default.aspx"/>  
        </authentication> 
        <authorization> 
            <deny users="?"/>  
            <allow users="*"/>  
        </authorization> 

All menu items (sitemap nodes) are accessible to anyone. Only the last one called "Administration" should be invisible unless a person with administrator privileges is using the site.
<?xml version="1.0" encoding="utf-8" ?> 
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > 
 
  <siteMapNode url="Default.aspx" title="_Home" description="Home" roles="*">  
      
    <siteMapNode url="~/CaseManagement/CaseOverview.aspx" title="Data Input"  description="Case Management (Data input)" roles="*" /> 
 
    <siteMapNode url="" title="Reports" roles="*">  
      <siteMapNode url="~/Reports/ProvisionsReportFilter.aspx" title="Provisions Report"  description="Provisions Report" roles="*" /> 
      <siteMapNode url="~/Reports/DivisionalControllingReportFilter.aspx" title="Divisional Controlling Report"  description="Divisional Controlling Report" roles="*" /> 
      <siteMapNode url="~/Reports/FinancialReportFilter.aspx" title="Financial Report"  description="Financial Report" roles="*" /> 
      <siteMapNode url="~/Reports/OverviewReportFilter.aspx" title="Overview Report" description="Overview Report" roles="*" /> 
      <siteMapNode url="~/Reports/PPTPreparationReportFilter.aspx" title="PPT Preparation Report" description="PPT Preparation Report" roles="*" /> 
    </siteMapNode> 
 
    <siteMapNode url="" title="Info" roles="*">  
      <siteMapNode url="~/Info/CorporateStructure.aspx" title="Corporate Structure"  description="Corporate Structure" roles="*" /> 
      <siteMapNode url="~/Info/Currencies.aspx" title="Exchange Rates"  description="Supported Currencies and Exchange Rates" roles="*" /> 
      <siteMapNode url="~/Info/Plants.aspx" title="Plants"  description="List of Plants" roles="*" /> 
      <siteMapNode url="~/Info/Supplier.aspx" title="Supplier"  description="List of Supplier" roles="*" /> 
    </siteMapNode> 
 
    <siteMapNode url="" title="Administration" roles="Administrator">  
      <siteMapNode url="~/Administration/UserManager.aspx" title="User Manager"  description="User Manager" roles="Administrator" /> 
      <siteMapNode url="~/Administration/SupplierManager.aspx" title="Supplier Manager"  description="Supplier Manager" roles="Administrator" /> 
      <siteMapNode url="~/Administration/FinancialClosingManager.aspx" title="Financial Closing Manager"  description="Financial Closing Manager" roles="Administrator" /> 
      <siteMapNode url="~/Administration/SnapshotManager.aspx" title="Snapshot Manager"  description="Snapshot Manager" roles="Administrator" /> 
    </siteMapNode> 
 
  </siteMapNode> 
    
</siteMap> 
 

This mechanism actually does work. Except for one very annoying thing:
An Admin can actually see the Administration-menu item when he is on the default page. But once he clicks e.g. on any other item (e.g. Data Input or Report or their children), the Administration-item disappears.

Consequently, the user always has to go back to the default / home page in order to perform administrative tasks.

Any idea why the admin item disappears while using any other page?

Thanks

s.

No answers yet. Maybe you can help?

Tags
PanelBar
Asked by
scrut
Top achievements
Rank 1
Share this question
or