Opening radWindow using javascript

I've got an issue, I can't seem to open up a radWindow using the following code.
<asp:FormView ID="NPProfile" runat="server">
 
    <ItemTemplate>
        <table>
            <tr>
                <td>
                    <a href="#" onclick='function() { ShowGridEditForm(userID); };'><asp:Image ID="NPPhoto" runat="Server" /></a>
                </td>
            </tr>
            <tr>
                <td style="color: #60798F; font-family: Arial, Verdana; font-size: 12px;">
                    <%#Eval("FullName")%>
                </td>
            </tr>
            <tr>
                <td style="color: #60798F; font-family: Arial, Verdana; font-size: 12px;">
                    <%#Eval("PrimarySpecialty")%>
                </td>
            </tr>
        </table>
        <div style="margin: 0 0 10px 0">
            &nbsp;</div>
    </ItemTemplate>
</asp:FormView>
 
                    <script type="text/javascript">
                        function ShowGridEditForm(userID){
                            window.radopen("../npdetails.aspx?userid=" + <%=session("fnpID") %>, "GridSelectDialog");
                            return false;
                        }
          
                    </script>
                    
                  
 
                <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Default">
                    <Windows>
                        <telerik:RadWindow ID="GridSelectDialog" runat="server" Height="450px" Width="600px"
                            ReloadOnShow="true" Modal="true" Skin="Web20" Behaviors="Close" />
                    </Windows>
                </telerik:RadWindowManager>

Open in new window

LVL 8
ApexCoAsked:
Who is Participating?
 
GiftsonDJohnCommented:
Hi,

The javascript code seems to have issue. Try using this.

 <script type="text/javascript">
                        function ShowGridEditForm(userID){
                            window.radopen('../npdetails.aspx?userid=<%=session("fnpID") %>', "GridSelectDialog");
                            return false;
                        }
         
                    </script>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.