radopen in mvc application

4 posts, 0 answers
  1. suhua an
    suhua an avatar
    4 posts
    Member since:
    Oct 2009

    Posted 26 Oct 2009 Link to this post

    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.
  2. suhua an
    suhua an avatar
    4 posts
    Member since:
    Oct 2009

    Posted 29 Oct 2009 Link to this post

    Why nobody answer me? Does Telerik not support it in MVC application?
  3. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 29 Oct 2009 Link to this post

    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.
  4. suhua an
    suhua an avatar
    4 posts
    Member since:
    Oct 2009

    Posted 20 Nov 2009 Link to this post

    Thank you very much, i will try it later.
Back to Top