onclick event of link in the row that have Select Handler

I have link in the cell and set onclick event of that link ; onclick=“alert(1)”

also I set onclick event for row - mygrid.setOnRowSelectHandler(MainOnRowSelected);

it calls function MainOnRowSelected but it is not call js code for onclick event of link

row type=“ro”

Can you please provide code snippet which shows how original onclick event was set, because if you just loading some HTML content with inline javacript - it must work correctly in described scenario.

sorry, it was my bug,
thank you for the quickly answers!