Version

RowSelectionChanged Property (SelectionClientEvents)

Event fired after a Row's selection changed.
Syntax
'Declaration
 
Public Property RowSelectionChanged As String
public string RowSelectionChanged {get; set;}
Example
Me.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.RowSelectionChanged = "WDG1_RowSelectionChanged"
this.WebDataGrid1.Behaviors.Selection.SelectionClientEvents.RowSelectionChanged = "WDG1_RowSelectionChanged";
// The client event RowSelectionChanged takes two parameters sender and e
 // sender  is the object which is raising the event
 // e is the RowSelectionChangedEventArgs

function WDG1_RowSelectionChanged(sender, e) {


    //Returns the collection of selected rows
    var selectedRows = e.getSelectedRows();

    var s = prompt("Enter 'Yes' to unselect the rows : ");

    if (s == 'Yes')

    //Unselects the selected rows
        selectedRows.clear();
        
        
 }
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