WebDataGrid1.Behaviors.VirtualScrolling.VirtualScrollingClientEvents.MoreRowsRequesting = "WebDataGrid_MoreRowsRequesting"
WebDataGrid1.Behaviors.VirtualScrolling.VirtualScrollingClientEvents.MoreRowsRequesting = "WebDataGrid_MoreRowsRequesting";
// The client event 'MoreRowsRequesting' takes two parameters sender and e // sender is the object which is raising the event // e is the CancelMoreRowsRequestingEventArgs function WebDataGrid_MoreRowsRequesting(sender, e) { //Returns number of rows received from the server var rowsRange = e.get_rowsRange(); //Returns index of the top row received from server var topRowIndex = e.get_topRowIndex(); if (!confirm("Are you sure you want to request more rows from the server?")) //Cancels request for more rows from the server e.set_cancel(true); }