Radwindow querystring stays the same ...

6 posts, 0 answers
  1. Roy
    Roy avatar
    3 posts
    Member since:
    Jan 2009

    Posted 04 Sep 2009 Link to this post


    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?
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 07 Sep 2009 Link to this post

    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.
  3. Roy
    Roy avatar
    3 posts
    Member since:
    Jan 2009

    Posted 07 Sep 2009 Link to this post


    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.


  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 08 Sep 2009 Link to this post

    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.
  5. Roy
    Roy avatar
    3 posts
    Member since:
    Jan 2009

    Posted 09 Sep 2009 Link to this post

    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
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 10 Sep 2009 Link to this post

    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.
Back to Top