// The client side event SplitterBarMouseDown takes two parameters, sender and e. // Sender is the object which is raising the event // e is the EventArgs function WebSplitter1_SplitterBarMouseDown(sender, e) { var websplitter = $find("WebSplitter1"); // Get the orientation of the websplitter, 0 is horizontal, 1 is vertical var orientation = websplitter.get_orientation(); // Get reference to pane located at index 0 var websplitterPane = websplitter.getPaneAt(0); // If orientation is horizontal, lock the pane from moving if (orientation == "0") websplitterPane.set_locked(true); }
Me.WebSplitter1.ClientEvents.SplitterBarMouseDown = "WebSplitter_SplitterBarMouseDown"
this.WebSplitter1.ClientEvents.SplitterBarMouseDown = "WebSplitter_SplitterBarMouseDown";
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2