Hi ekc,
In such scenario, only the radwin_close() function that is rendered last on the page will be executed - as it will override the one rendered previously.
What I would suggest is to give a different name to the JS function depending on (for example) RadWindow's ClientID property.
For example, let's say that the RadWindowManager is called RadWindowManager1.
Then the JavaScript function's name can be set as
and you can set the OnClientClose property from codebehind (in the user control) like this:
This way, when the page with the usercontrols in it is rendered, you will get 2 different JavaScript functions, each hooked to the corresponding manager.
I hope this helps.
Regards,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items