After several hours of debug scratching my head at why some javascript won't work in my user control if it was inside a radwindow (but works flawlessly outside), I discovered that RadWindow seems to prefix Telerik controls ID with "ctl00_".
The big problem is that it only adds it to Telerik controls and not for example to ASP server side controls.
Thus simple tricks like the following to get a control id in an external javascript, derived from the js function initiator won't work anymore:
var id = args.getAttribute('id');
var PasswordMatchID = id.replace('RegPasswordCheck', 'PasswordMatch');
That's because if the initiator (args) is a Telerik control and PasswordMatchID is a server side ASP.NET control, they won't have the same prefix chain as the Telerik one will start with 'ctl00_' while the ASP.NET one won't.
Any hint/fix? And why this behaviour? Why ctl00 is not added to every server side control then?
Thanks in advance