Version

MoreRowsRequesting Property

Gets sets name of javascript function which is called when more rows are requesting from server.
Syntax
'Declaration
 
Public Property MoreRowsRequesting As String
public string MoreRowsRequesting {get; set;}
Example
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);
    
        
}
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