hi,
I have a user control with a RadWindowManager declared as the following:
AfterUpload is a Javascript function declared in the user control as well.
On the user control, there is a link with the following onclick handler (client side):
HostPage 1 does not contain a RadWindowManager, and the OnClientClose defined in the UserControl fires correctly.
HostPage 2 has its own RadWindowManager (for other functions), and is defined as the following:
The javascript function CallBackFunctionEdit fires correctly. However, when HostPage 2 opens the RadWindow defined by the user control, the onclientClose function defined in the user control does not fire.
Questions:
1) What's wrong? does having 2 RadWindowManagers conflict each other?
2) If I can only have one RadWindowManager (on the host page), what do you think is the best way to define OnClientClose function for radwindow that should be opened from within the user control? Remember the actual javascript function to handle onclientclose is defined inside the usercontrol..
I have a user control with a RadWindowManager declared as the following:
<telerik:RadWindowManager ID="RadWindowManagerUserControl" runat="server"> | |
<Windows> | |
<telerik:RadWindow ID="RadWindow1" runat="server" Modal="false" OnClientClose="AfterUpload"/> | |
</Windows> | |
</telerik:RadWindowManager> |
AfterUpload is a Javascript function declared in the user control as well.
On the user control, there is a link with the following onclick handler (client side):
onclick="showWindow('upload.aspx?mode=edit&messageid=388327','RadWindow1', 550, 450); return false;"This user control is presently used on two pages.
HostPage 1 does not contain a RadWindowManager, and the OnClientClose defined in the UserControl fires correctly.
HostPage 2 has its own RadWindowManager (for other functions), and is defined as the following:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"> | |
<Windows> | |
<telerik:RadWindow ID="RadWindow2" runat="server" Modal="false" OnClientClose="CallBackFunctionEdit"/> | |
</Windows> | |
</telerik:RadWindowManager> |
The javascript function CallBackFunctionEdit fires correctly. However, when HostPage 2 opens the RadWindow defined by the user control, the onclientClose function defined in the user control does not fire.
Questions:
1) What's wrong? does having 2 RadWindowManagers conflict each other?
2) If I can only have one RadWindowManager (on the host page), what do you think is the best way to define OnClientClose function for radwindow that should be opened from within the user control? Remember the actual javascript function to handle onclientclose is defined inside the usercontrol..