New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Flow

When Flow layout is used nodes are rendered horizontally to fill the available width. Nodes automatically wrap.

If Flow layout is applied to a given level, the levels below it are not rendered.

When using Flow layout, the nodes are separated with a pipe symbol by default. You can change this using the SeparatorText property. The SeparatorTemplate property allows you to fully customize the separator and use images or custom markup.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="SiteMap.Examples.Flow.DefaultCS" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <telerik:RadSiteMapDataSource runat="server" ID="RadSiteMapDataSource1" ShowStartingNode="false"
        SiteMapFile="~/Examples.sitemap"></telerik:RadSiteMapDataSource>

    <div class="demo-container">
        <telerik:RadSiteMap runat="server" ID="SiteMap1" DataSourceID="RadSiteMapDataSource1"
            OnNodeDataBound="SiteMap1_NodeDataBound">
            <LevelSettings>
                <telerik:SiteMapLevelSetting MaximumNodes="4">
                    <ListLayout RepeatColumns="2" AlignRows="true"></ListLayout>
                </telerik:SiteMapLevelSetting>
                <telerik:SiteMapLevelSetting Layout="Flow" SeparatorText="&#x250A;" MaximumNodes="3">
                </telerik:SiteMapLevelSetting>
            </LevelSettings>
        </telerik:RadSiteMap>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance