Version

SplitterBarPositionChanging Property

Gets sets name of javascript function which is called before position of splitter bar is changed (mouse was released after splitter bar drag).
Syntax
'Declaration
 
Public Property SplitterBarPositionChanging As String
public string SplitterBarPositionChanging {get; set;}
Remarks
Action of that event can be canceled or position of splitter bar can be modified.
Example
// The client side event SplitterBarPositionChanging takes two parameters, sender and e.
// Sender is the object which is raising the event
// e is the SplitterBarPositionEventArgs
function WebSplitter1_SplitterBarPositionChanging(sender, e) {
   var websplitter = $find("WebSplitter1");

   // Get new size of previous pane
   var newSizePrevPane = e.get_prevPaneNewSize();

   // Get old size of previous pane
   var oldSizePrevPane = e.get_prevPaneOldSize();

   // Get new size of next pane
   var newSizeNextPane = e.get_nextPaneNewSize();

   // Get old size of next pane
   var oldSizeNextPane = e.get_nextPaneOldSize();

   if (!confirm("Do you want to change the previous pane size from" 
                +oldSizePrevPane+" to "+newSizePrevPane+"?"))
       e.set_cancel(true);
}
Me.WebSplitter1.ClientEvents.SplitterBarPositionChanging = "WebSplitter_SplitterBarPositionChanging"
this.WebSplitter1.ClientEvents.SplitterBarPositionChanging = "WebSplitter_SplitterBarPositionChanging";
Requirements

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

See Also