fires when the user starts selecting a block
mygrid.attachEvent("onBeforeBlockselected",function(id,ind){ //your code here })