making the navigateurl dynamic in radwindow

2 posts, 0 answers
  1. appdev
    appdev avatar
    223 posts
    Member since:
    Sep 2008

    Posted 14 May 2009 Link to this post

    im trying to pass a value that i assigned in serverside to the client side so that when i click on the button that activate the radwindow to take me to the correct link but it won't work
    if i use
    <telerik:RadWindowManager ID="RadWindowManager2" VisibleStatusbar="false" runat="server">   
                                            <Windows>  
                                                <telerik:RadWindow ID="RadWindow2" Modal="false" runat="server" NavigateUrl="report1.aspx"
                                                    Skin="WebBlue" Animation="Resize" Width="800px" Height="500px" ></telerik:RadWindow>  
                                            </Windows>  
                                        </telerik:RadWindowManager>

    then it works fine but if i do this
    <telerik:RadWindowManager ID="RadWindowManager2" VisibleStatusbar="false" runat="server">   
                                            <Windows>  
                                                <telerik:RadWindow ID="RadWindow2" Modal="false" runat="server" NavigateUrl="report1.aspx?rowid=<%=ucr_row_id %>&reportid=<%=report_id %>"
                                                    Skin="WebBlue" Animation="Resize" Width="800px" Height="500px" ></telerik:RadWindow>  
                                            </Windows>  
                                        </telerik:RadWindowManager>

    then it just wont work. what it does is just give me url as :   "report1.aspx?rowid=<%=......."  but not the actual value of the variables.  so how do i do the second method. the values only get assigned in the server side. please help. thanks.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 15 May 2009 Link to this post

    Hello Duy,

    Set the NavigateUrl property from the server and you will not experience this problem anymore.
    More information on the subject is available in the documentation.


    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top