Hi Had,
I guess you are trying to confugure the RadWindow from code behind (based on condition) whether the window should be shown or not onclicking the html input button. One suggestion to achieve this, would be setting the OpenerElementID to null for not showing the RadWindow on clicking button.
ASPX:
CS:
Thanks,
Princy.