Link to home
Start Free TrialLog in
Avatar of ApexCo
ApexCoFlag for United States of America

asked on

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

ASKER CERTIFIED SOLUTION
Avatar of GiftsonDJohn
GiftsonDJohn
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial