This is a migrated thread and some comments may be shown as answers.

using anchor tags

8 Answers 102 Views
Window
This is a migrated thread and some comments may be shown as answers.
Nik
Top achievements
Rank 1
Nik asked on 03 Aug 2010, 12:46 PM
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.

8 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 05 Aug 2010, 01:15 PM
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
0
Nik
Top achievements
Rank 1
answered on 11 Aug 2010, 03:18 PM
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.
0
Georgi Tunev
Telerik team
answered on 12 Aug 2010, 12:55 PM
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
0
Nik
Top achievements
Rank 1
answered on 12 Aug 2010, 12:57 PM
Ok, I'll try it again. But you didnt answer...can this be set via JS as well?
0
Georgi Tunev
Telerik team
answered on 16 Aug 2010, 02:45 PM
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
0
Nik
Top achievements
Rank 1
answered on 19 Aug 2010, 04:00 PM
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.
0
Nik
Top achievements
Rank 1
answered on 27 Aug 2010, 03:53 PM
Can anyone advise on my last post?
0
Georgi Tunev
Telerik team
answered on 01 Sep 2010, 03:22 PM
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
Tags
Window
Asked by
Nik
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Nik
Top achievements
Rank 1
Share this question
or