Splitter - Locked Panes

Locked Middle Pane

Left Pane
Middle Pane (Locked)
End Pane
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

Use the Locked property of a RadPane to lock the pane.

When a pane is locked its size remains unchanged during any of the operations including:

  • Resize of the splitter
  • Resize of the panes regardles of the ResizeMode
  • Collapse / Expand of the panes

The size of a locked pane can be changed only from the client-side API when using the SetWidth or SetHeight methods of RadPane.

  • DefaultCS.aspx
<%@ Page Language="c#" AutoEventWireup="false"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-wide">
        <h2>Locked Middle Pane</h2>
        <telerik:RadSplitter RenderMode="Lightweight" ID="RadSplitter1" runat="server" Height="200" oncliendloaded="SplitterLoaded"
            <telerik:RadPane ID="RadPane1" runat="server" Width="300">
                Left Pane
            <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward">
            <telerik:RadPane ID="Radpane2" runat="server" Width="150" Locked="true">
                Middle Pane (<b>Locked</b>)
            <telerik:RadSplitBar ID="RadSplitBar2" runat="server" CollapseMode="Backward">
            <telerik:RadPane ID="RadPane3" runat="server">
                End Pane

Find Assistance

Help Us Improve

Was this example helpful?