the row of the grid couldn't be clicked twice more

In the directory of grid ,there is 03_edit.html.In this sample ,I encounter a question ,when I click the row of the grid ,it goes into another view in the 03_edit.html of the grid directory , then I click the button ,it return . This time ,I try to click the the same row again ,this moment ,it cann’t work.How can I make this row lose the focus to make me to click it again.
Any help would be appreciated!

onAfterSelect event is called only if the selection got changed. You may use onItemClick event instead:

$$(‘mygrid’).attachEvent(“onItemClick”, function(){