Javascript Runtime Error

4 posts, 0 answers
  1. Amish
    Amish avatar
    2 posts
    Member since:
    Apr 2009

    Posted 12 Jan 2010 Link to this post

    I am running into a Javascript runtime error - Object doesn't support this property or method - while trying to use the radopen function. Here is the code snippet:

     

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>    
     
     
       
    <script type="text/javascript">    
     
    function openWin()    
    {   
     
     
     
        var oWnd = window.radopen("/Checkout/FindDistributorPopup.aspx"null);    
    }  
     
     </script>  
     
     
     

    I am trying to call this JS function on a button's onclick event:

    <button onclick="openWin();">Search for Distributor</button>

     

     

     

    Thanks in advance for your help.

     

     

     

     

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 13 Jan 2010 Link to this post

    Hi Amish,

    You have to add a RadWindowManager to your aspx page to avoid this error:
    aspx:
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
    </telerik:RadWindowManager> 

    Thanks
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Amish
    Amish avatar
    2 posts
    Member since:
    Apr 2009

    Posted 13 Jan 2010 Link to this post

    Hi Princy,

    It worked! Thank you.

    Amish
  5. Mark Galbreath
    Mark Galbreath avatar
    171 posts
    Member since:
    Jul 2009

    Posted 13 Jan 2010 Link to this post

    I do this a lot and have never used the RadWindowManager.  I wrap the Javascript in RadScriptBlocks, though.

    Cheers!
    Mark
Back to Top