This event is cancelable.
WebDataGrid1.Behaviors.ColumnMoving.ColumnMovingClientEvents.HeaderMove = "WebDataGrid_HeaderMove"
WebDataGrid1.Behaviors.ColumnMoving.ColumnMovingClientEvents.HeaderMove = "WebDataGrid_HeaderMove";
// The client event 'HeaderMove' takes two parameters sender and e // sender is the object which is raising the event // e is the HeaderMoveEventArgs function WebDataGrid_HeaderMove(sender, e) { //Returns the drag markup element var dragElement = e.get_dragElement(); //Sets the bgColor property of the dragElement to Red dragElement.bgColor = "Red"; //Gets the column object you want to move var column = e.get_column(); //Gets the key of the column var key = column.get_key(); window.status = "Column '" + key + "' moving..."; }
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