Fired when the user selects or deselects a row, after the default RowSelect action (specified by rowSelectHandling property).
Row selecting must be enabled by mapping a selected user action to "Select" first (rowClickHandling, rowDoubleClickHandling).
The default action can be canceled by calling args.preventDefault().
dp.onRowSelected = function(args) { var was = args.selected ? "selected" : "deselected"; alert("Task " + args.task.text() + " was " + was); };