Version

ColumnResizing Property (ColumnResizingClientEvents)

Event fired before a column enters resizing mode.

This event is cancelable.

Syntax
'Declaration
 
Public Property ColumnResizing As String
public string ColumnResizing {get; set;}
Example
Me.WebDataGrid1.Behaviors.ColumnResizing.ColumnResizingClientEvents.ColumnResizing = "WDG1_ColumnResizing"
this.WebDataGrid1.Behaviors.ColumnResizing.ColumnResizingClientEvents.ColumnResizing = "WDG1_ColumnResizing";
// The client event ColumnResizing takes two parameters sender and e
// sender  is the object which is raising the event
// e is the ColumnResizingEventArgs

 function WDG1_ColumnResizing(sender, e) {
    
     //Returns which column is being used as the drag source for the resize action
     var column = e.get_column();

     //Gets the key of the column
     var key = column.get_key();

     if (!confirm("Are you sure you want to change the width of the column '" + key + "' ?"))
        
        //Cancels the 'ColumnResizing' event
         e.set_cancel(true);  

 }
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