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

[Solved] Radwindow querystring stays the same ...

5 Answers 137 Views
Window
This is a migrated thread and some comments may be shown as answers.
Roy
Top achievements
Rank 1
Roy asked on 04 Sep 2009, 08:00 PM

I use a radwindowmanager and a radwindow. In the page I have several images, when a user click a image the radwindow is shown, for example with radopen('/Forms/page.aspx?id=1'. When I see the properties of the radwindow and look for the queerystring it is nicely .../Forms/page.aspx?id=1. But when I close the radwindow and click on a different image, for example radopen('/Forms/page.aspx?id=30'), it still uses the old querystring instead of the new one (with the number 30).

I really need an update of the querystring. How can I do this?

5 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 07 Sep 2009, 08:12 AM
Hello Roy,

Could you please provide more details about your exact setup? How do you open the RadWindows? Please paste the code for the RadWindow / RadWindowManager and the opening function.


Greetings,
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.
0
Roy
Top achievements
Rank 1
answered on 07 Sep 2009, 03:06 PM

I have several images on the 'parent' page (unfortunately I can't paste an image). Every image has an onclick event like: onclick="radopen('/Forms/Accordering/Opmerking.aspx?id=1', 'uiOpmerkingRadWindow'); return false;"
The only difference is the number of the id.

In the aspx page I have a windowradmanager:
<telerik:RadWindowManager ID="uiAanvragenAccorderenRadWindowManager" runat="server">
    <Windows>
        <telerik:RadWindow runat="server" ID="uiOpmerkingRadWindow" VisibleOnPageLoad="false" NavigateUrl="/Forms/Accordering/Opmerking.aspx" Animation="Slide" Behaviors="Close, Maximize" Modal="True" Overlay="True" VisibleTitlebar="True" VisibleStatusbar="False" Width="700px" Height="550px">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

When I click on an image on the 'parent' page the uiOpmerkingenRadWindow is opened. This 'child' window has a close image with an event: onclick="parent.GetRadWindowManager().GetWindowByName('uiOpmerkingRadWindow').Close();"

That way I can open the uiOpmerkingenRadWindow several times with different id's, I thought. But that ain't working, because I always keep the id according to the image I first clicked.


0
Georgi Tunev
Telerik team
answered on 08 Sep 2009, 10:19 AM
Hi Roy,

I tried your code and it is working fine on my side. Please, try setting ReloadOnShow=true and ShowContentDuringLoad=false for the RadWindowManager and if this doesn't help - open a support ticket and send me a sample project that reproduces the problem so I could check it.

Thank you for your cooperation.

Greetings,
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.
0
Roy
Top achievements
Rank 1
answered on 09 Sep 2009, 09:43 AM
Georgi,

This works indeed fine. Sorry, I overlooked those properties. But it's sure good to know that all those properties simply can be 'tweaked' in the manager tag instead of all the windows tags.

Many thanks on these tips!

Greetings Roy
0
Georgi Tunev
Telerik team
answered on 10 Sep 2009, 07:16 AM
Hello Roy,

Yes, this is the general idea behind the manager - to allow you to set common properties for all RadWindows declared in its Windows collection.


Sincerely yours,
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.
Tags
Window
Asked by
Roy
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Roy
Top achievements
Rank 1
Share this question
or