using anchor tags

9 posts, 0 answers
  1. Nik
    Nik avatar
    51 posts
    Member since:
    Sep 2009

    Posted 03 Aug 2010 Link to this post

    Using version 2008.1.515.20

    I found another thread that mentioned anchor tags have been fixed in a recent version, but I'm wondering if there is any workarounds for those of us that are unable to upgrade at this time? The problem seems to stem from what the rad window adds to the querystring.

    http://localhost/dialogs/popupgeneric.aspx#shipping?rwndrnd=0.8012201152955385  doesnt work, but
    http://localhost/dialogs/popupgeneric.aspx#shipping does.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 05 Aug 2010 Link to this post

    Hi Nik,

    RadWindow will add such string to the query if ReloadOnShow is set to true. To stop that, just set ReloadOnShow=false.


    Best wishes,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Nik
    Nik avatar
    51 posts
    Member since:
    Sep 2009

    Posted 11 Aug 2010 Link to this post

    How do I set ReloadOnShow via JS? I tried setting it on the radwindow manager on the front end code, but these windows are being opened via JS, so I assume it wont read those settings.
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 12 Aug 2010 Link to this post

    Hello Nik,

    If you have set ReloadOnShow to true for a RadWindowManager and you use that exact RadWindowManager to open RadWindows, the setting will work.
    If you still experience problems, please open a support ticket and send a sample project so we can investigate.


    Best wishes,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Nik
    Nik avatar
    51 posts
    Member since:
    Sep 2009

    Posted 12 Aug 2010 Link to this post

    Ok, I'll try it again. But you didnt answer...can this be set via JS as well?
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 16 Aug 2010 Link to this post

    Hello Nik,

    No, the ReloadOnShow property cannot be set via JavaScript. You can achieve the same functionality however, by using the client-side API of the control.
    e.g.
    function OnClientShow(sender, args)
    {
       sender.setUrl(sender.get_navigateUrl());
    }


    All the best,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Nik
    Nik avatar
    51 posts
    Member since:
    Sep 2009

    Posted 19 Aug 2010 Link to this post

    I figured out the problem...I had changed the reloadonshow on my page, but forgot there was a windowmanager on the master page as well. Anyways, the new issue is that the whole page scrolls when linking to an anchor in the window if the parent window has scrollbars from long content. As soon as the window loads and moves to the anchor, the parent page scrolls down to the point that the radwindow is now at the top of the browser window. The radwindow scrolls to the anchor correctly.
  8. Nik
    Nik avatar
    51 posts
    Member since:
    Sep 2009

    Posted 27 Aug 2010 Link to this post

    Can anyone advise on my last post?
  9. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 01 Sep 2010 Link to this post

    Hello Nik,

    If I understand correctly, you load a RadWindow with a NavigateUrl that contains a link to an anchor in the content page, am I right? If this is so, this is a known problem, that however is not directly related to the RadWindow control - you will get the same behavior if you use an IFRAME instead (sample attached). The reason for this behavior is that the browser always tries to focus the anchor and show it on top of the page which leads to the "jumping".
    If this is your exact scenario, I would suggest to set ShowContentDuringLoad to false for the RadWindow / RadWindowManager - this way the initial content of the window will be hidden until the page is loaded and the browser will not focus it.

    Best wishes,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top