Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Opening radWindow using javascript

Posted on 2009-04-29
1
Medium Priority
?
8,132 Views
Last Modified: 2012-05-06
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

0
Comment
Question by:ApexCo
1 Comment
 
LVL 14

Accepted Solution

by:
GiftsonDJohn earned 2000 total points
ID: 24273484
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Screencast - Getting to Know the Pipeline
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question