Hi,
I would like to add two rad windows, one for alert purpose and another for linking another form into rad window. But i am able to add only one rad window at a time.
I used the below code for alert
CS Code
The another RadWindow helps to show the linked page;
All the above codes are mentioned in single form, but when i try to show the rad window i am getting the following error
"Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id 'OpenWindow' can't be added to the application."
So how to solve the above issue
-Thanks
I would like to add two rad windows, one for alert purpose and another for linking another form into rad window. But i am able to add only one rad window at a time.
I used the below code for alert
| <telerik:RadWindowManager ID="RadAlertWindow" runat="server" /> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadGrid1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> |
| <telerik:AjaxUpdatedControl ControlID="RadAlertWindow" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| protected void btnTest_Click(object sender, EventArgs e) |
| { |
| string verbiage = "Testing Alert"; |
| RadAjaxManager1.ResponseScripts.Add(@"radalert('" + verbiage + "', 330, 110);"); |
| } |
The another RadWindow helps to show the linked page;
| function ShowForm(CID) { |
| window.radopen("FileInfo.aspx?cid="+CID, "OpenWindow"); |
| return false; |
| } |
| <telerik:RadWindowManager ID="RadWindowManager2" runat="server"> |
| <Windows> |
| <telerik:RadWindow ID="OpenWindow" runat="server" Title="Test" Height="500px" |
| Width="900px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" |
| Modal="true" /> |
| </Windows> |
| </telerik:RadWindowManager> |
All the above codes are mentioned in single form, but when i try to show the rad window i am getting the following error
"Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id 'OpenWindow' can't be added to the application."
So how to solve the above issue
-Thanks