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

radopen in mvc application

3 Answers 75 Views
Window
This is a migrated thread and some comments may be shown as answers.
suhua an
Top achievements
Rank 1
suhua an asked on 26 Oct 2009, 10:12 AM
Hi,

I need to pop up a window in asp.net MVC application, so i used RadWindowManager and window.radopen(it works fine in web form).

 
 <telerik:RadWindowManager runat="server" ID="RadWindowManager1" VisibleStatusbar="false" Modal="true" DestroyOnClose="true" Behavior="Close,Reload,Move,Resize" > 
            <Windows> 
                <telerik:RadWindow runat="server" ID="RadWindow1" Height="800px" Width="700px"  NavigateUrl='<%# Url.Action( "About", "Home" ) %>'></telerik:RadWindow> 
            </Windows> 
     </telerik:RadWindowManager> 
 
...  
 <href="#" onclick="window.radopen('<%= Url.Action("Index", "Home") %>', 'RadWindow1'); return false">System Admin</a> 

but when run it, error occoured:Object doesn't support this property or method

Can anyone help me?

thanks.

3 Answers, 1 is accepted

Sort by
0
suhua an
Top achievements
Rank 1
answered on 29 Oct 2009, 08:34 AM
Why nobody answer me? Does Telerik not support it in MVC application?
0
Fiko
Telerik team
answered on 29 Oct 2009, 11:18 AM
Hello Suhua,

I used the provided code, but I was not able to reproduce any problems on my side. Could you please rework my project, open a new support ticket and send it back? I will check it and do my best to provide a solution.
Additionally, could you please open the "About" view in RadWindow? I am asking you this because if you use the provided code in the "Index" view, then this code :
<a href="#" onclick="window.radopen('<%= Url.Action("Index", "Home") %>', 'RadWindow1'); return false">System Admin</a>
will cause (endless) recursion. If this is so, then the browsers handle this scenarios in different manner, but in general they throw an exception.

I hope this helps.

Best wishes,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
suhua an
Top achievements
Rank 1
answered on 20 Nov 2009, 06:32 AM
Thank you very much, i will try it later.
Tags
Window
Asked by
suhua an
Top achievements
Rank 1
Answers by
suhua an
Top achievements
Rank 1
Fiko
Telerik team
Share this question
or