This is a migrated thread and some comments may be shown as answers.

Adding tow RadWindows

7 Answers 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John John
Top achievements
Rank 1
John John asked on 18 Mar 2010, 09:18 AM
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
        <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> 
CS Code
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

7 Answers, 1 is accepted

Sort by
0
John John
Top achievements
Rank 1
answered on 18 Mar 2010, 03:44 PM
Any ideas?
0
John John
Top achievements
Rank 1
answered on 22 Mar 2010, 04:05 PM
Any suggessions relate to above question

-Thanks
0
Yavor
Telerik team
answered on 23 Mar 2010, 10:42 AM
Hi John John,

Basically, the functionality relies on opening a window, as shown in the following example:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid

Additionally, if the issue persists at your end, you can open a formal support ticket, and send us the problematic code, for additional review.

Greetings,
Yavor
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.
0
John John
Top achievements
Rank 1
answered on 23 Mar 2010, 12:29 PM
Hi Yavor,
                Thanks for your respose. Since i am awaring about the basic thing to intereact with Rad Window, i am struggling only with the concept of calling Rad Alert and Rad Window in the same page. So that only i am getting exception of "Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id 'OpenWindow' can't be added to the application."

So please let me know the possiblity of my scenario.


Thanks,
John
0
John John
Top achievements
Rank 1
answered on 24 Mar 2010, 02:32 PM
Hi,
            Any suggessions?

-Thanks
0
John John
Top achievements
Rank 1
answered on 25 Mar 2010, 09:08 AM
Hi give me any suggession in adding alert window with rad window as per the scenario i mentioned above

-Thanks
0
Yavor
Telerik team
answered on 26 Mar 2010, 08:25 AM
Hi John,

Basically, when you have properly declared the client side handlers, you can call radalert/radprompt, or open new windows normally. The same approach, which is demonstrated in the example, is applicable in your case as well. If, for some reason you are getting you are getting any exceptions, you can open a formal support ticket, and send us a small project, demonstrating the problem, for additional review and testing.

Greetings,
Yavor
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.
Tags
Grid
Asked by
John John
Top achievements
Rank 1
Answers by
John John
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or