ASP.NET 3.5 and above only

ASP.NET TreeView - Types of Expand Mode

When the ExpandMode property is set to,
  • ClientSide, this will expand the child nodes in the client itself.
  • ServerSide, this will trigger a postback to load child nodes on demand.
  • ServerSideCallback, this will trigger asyncronous postback to load child nodes on demand.
Client Side Server-Side Server-Side Callback
  • Node 0
    • Node 00
      • Node 000
  • Node 1
    • Node 10
      • Node 100
  • Node 0
  • Node 1
  • Node 0
  • Node 1
[ASPX]

<obout:Tree ID="OboutTree1" CssClass="vista" Width="150px" runat="server">
    <Nodes>
        <obout:Node Text="Node 0">
                     <obout:Node Text="Node 00">
                    ...
                    </obout:Node>
        ...
        </obout:Node>
        ...
    </Nodes>
</obout:Tree>


<obout:Tree ID="OboutTree2" CssClass="vista" Width="150px" runat="server">
    <Nodes>
        <obout:Node ExpandMode="ServerSide" Text="Node 0">
            <obout:Node ExpandMode="ServerSide" Text="Node 00">
                ...
            </obout:Node>
        ...
        </obout:Node>
        ...
    </Nodes>
</obout:Tree>

<obout:Tree ID="OboutTree3" CssClass="vista" Width="150px" runat="server">
    <Nodes>
        <obout:Node ExpandMode="ServerSideCallback" Text="Node 0">
            <obout:Node ExpandMode="ServerSideCallback" Text="Node 00">
            ...
            </obout:Node>
        </obout:Node>
        ...
    </Nodes>
</obout:Tree>
            

"Thank you!!! ... Awesome customer service!! :)"

Romi Kovacs

Random testimonial   All testimonials