Version

Collapsing Property

Gets sets name of javascript function which is called before collapse of a splitter pane.
Syntax
'Declaration
 
Public Property Collapsing As String
public string Collapsing {get; set;}
Remarks
Action of that event can be canceled.
Example
//The client side event Collapsing takes two parameters, sender and e.
//Sender is the object which is raising the event
//e is the SplitterCollapsedStateEventArgs
function WebSplitter1_Collapsing(sender, e) {

   var websplitter = $find("WebSplitter1");
       
   // Gets a reference to the pane that is related to the browser event in 
   // the splitter bar
   var websplitterPane = websplitter.getPaneFromEvent(e);
        
   // Confirm if end user wants to collapse the pane
  if(!confirm("Do you want to continue collapsing the pane?"))
      e.set_cancel(true);

   // Gets the collapsed state of the pane
   // Boolean value, true is collapsed, false is not collapsed
   var collapsed = websplitterPane.get_collapsed();

   // Gets the collapsed direction of the pane
   // 1 is nextPane, 2 is previousPane
   var collapsedDirection = websplitterPane.get_collapsedDirection();     
}
Me.WebSplitter1.ClientEvents.Collapsing = "WebSplitter_Collapsing"
this.WebSplitter1.ClientEvents.Collapsing = "WebSplitter_Collapsing"
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