Parameters:
view.attachEvent("onAfterSelect", function (id){ //any custom logic here });
Event doesn't occur for multi-select actions