New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

OnRowDragging

Sys.EventArgs OnRowDragging Property

This event can be used if you want to check the current position of the mouse while the user is still dragging. It can be used to cancel the dragging action on Escape button click:

Cancel row drag and drop when ESC key is pressed

Fired by RadGrid
Arguments get_domEvent() - returns the event object representing the mousemove action
Can be canceled No

Example:

<ClientSettings AllowRowsDragDrop="true">
    <Selecting AllowRowSelect="true" />
    <ClientEvents OnRowDragging="rowDragging" />
</ClientSettings>
function rowDragging(sender, args) {
    var event = args.get_domEvent();
    // the current position of the mouse
    var coordinateX = event.clientX;
    var coordinateY = event.clientY;
}
In this article