first off: what have you converted this step to code?
Take a look at the following article:
Also, take a look at the following article that talks about HTML popups:
near the end of the article you will find some info on resolving popup-related issues.
the Telerik team