Setting URL from client side for Radwindow

3 posts, 0 answers
  1. Rakesh
    Rakesh avatar
    2 posts
    Member since:
    Apr 2009

    Posted 18 Oct 2009 Link to this post


    I am haveing a rad window whose url is set through function SetURL() from client side. Now the problem is The url from where I am calling the rad window is
    "Page/Application/SomePage.aspx". Rad window url is "Page/Lease/Somepage.aspx". Now when i tried to set url like seturl(~/Page/Lease/Somepage.aspx") it appended the url and became Page/Application/SomePage.aspx/~/Page/Lease/Somepage.aspx. How should i get through this?

    Thank you
  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 19 Oct 2009 Link to this post

    Hi Rakesh,

    You cannot set the path by using the ASP.NET path convention ( where tilde represents the root of your web application) because this path will not be parsed from the browser - RadWindow is basically an IFRAME and it behaves just like one. You need to use either the full or relative paths if you are going to set them via JavaScript.

    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 19 Oct 2009 Link to this post

    Hi Rakesh,

    Try replacing '~/' with '../' to set the url of the window from client side as shown below and see if it helps:


Back to Top