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.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="DefaultVB.aspx.vb" Inherits="SiteMap.Examples.Flow.DefaultVB" %>

<%@ 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">
            <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