Version

TabMoved Property (TabClientEvents)

Gets sets name of javascript function which is called after tab was temporary moved to new location.
Syntax
'Declaration
 
Public Property TabMoved As String
public string TabMoved {get; set;}
Remarks
Action cannot be canceled. Second param in handler is instance of TabMovedEventArgs class, which provides information about TabItem which was moved.
Example
Me.WebTab1.ClientEvents.TabMoved = "WebTab1_TabMoved"
this.WebTab1.ClientEvents.TabMoved = "WebTab1_TabMoved";
// The client event TabMoved takes two parameters sender and e
// sender  is the object which is raising the event
// e is the TabMovedEventArgs

function WebTab1_TabMoved(sender, e) {

              //Gets the initial index of the tab
              var tabIndex = e.get_tabIndex();

              //Gets the index of the tab when it is moving
              var tabVisibleIndex = e.get_tabVisibleIndex();

              //Assuming you have a label called labelOutput on the form
    var label = $get('labelOutput');

              label.innerHTML = "Tab Index : " + tabIndex + " ; Tab Visible Index : " + tabVisibleIndex;

          }
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