Edit this page

Level Settings

RadSiteMap provides a way to customize the behavior of the nodes at any level.

RadSiteMap support both global level settings and per level settings.

  • DefaultLevelSettings - applied globally to the nodes on all levels.

The following example shows how to show only the first three nodes in every level by utilizing the MaximumNodes property:

<telerik:RadSiteMap ID="RadSiteMap2" runat="server" DataSourceID="SiteMapDataSource">
    <DefaultLevelSettings MaximumNodes="3">
    </DefaultLevelSettings>
</telerik:RadSiteMap>
  • LevelSettings - applied to the nodes per level. It overrides the DefaultLevelSettings.

The following example shows how the LevelSettings override the MaximumNodes value of the first (zero) level:

<telerik:RadSiteMap ID="RadSiteMap2" runat="server" DataSourceID="SiteMapDataSource">
    <DefaultLevelSettings MaximumNodes="3">
    </DefaultLevelSettings>
    <LevelSettings>
        <telerik:SiteMapLevelSetting Level="0" MaximumNodes="4">
        </telerik:SiteMapLevelSetting>
    </LevelSettings>
</telerik:RadSiteMap>

Here the default setting for MaximumNode = 3 is applied to all levels except level 0 which is overridden by the level settings.

Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy