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

Open Rad Window From Any Link ERROR

1 Answer 20 Views
Window
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 15 Apr 2011, 03:13 PM
I am looking to have a RadWindow open any URL I throw at it, but I am getting the following error:

BC30456: 'OpenRadWindow' is not a member of {page name}

It seems like it should be pretty simple, I must be missing something here...

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
   <script type="text/javascript">
 
    function OpenRadWindow(url) {
        radopen(url, "DisplayWindow");
    }
 
    </script
    </telerik:RadCodeBlock>
<p>
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableViewState = "false">
        <Windows>
            <telerik:RadWindow Skin="Sunset"  ID="DisplayWindow" runat="server" Title="RadWindow" AutoSize="true" Left="10px" Top="10px" ReloadOnShow="true" Modal="true"  ShowContentDuringLoad="false" KeepInScreenBounds="True" />
        </Windows>
    </telerik:RadWindowManager>
 
    </p>
<p><asp:LinkButton ID="LinkButton1" runat="server" OnClick="OpenRadWindow('http://maps.google.com/maps?map_url'); return false;">Map It!</asp:LinkButton> </p>

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 18 Apr 2011, 06:08 AM
Hello Shawn,

The OnClick event handler (for the asp:linkbutton control) is a server-side one. Since your code is on the client, you should use OnClientClick.

Greetings,
Georgi Tunev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Window
Asked by
Shawn
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or