RadWindow not popping up

8 posts, 0 answers
  1. Bill
    Bill avatar
    175 posts
    Member since:
    Apr 2010

    Posted 17 Jun 2010 Link to this post

    I had some code in a server side event where it would build a RadWindow and try to open it up from a record on a RadGrid.

    After unsuccessfully trying, I removed the AjaxSettings block for that particular control from my markup within the RadAjaxManager and the window popped up. Unfortuantely, the grid now posts back and is not ajaxified anymore which is very annoying.

    What I did was to put the AjaxSettings back and use the following instead of building the RadWindow:
    <code>
    string s = "window.open('../scan/viewChart.aspx','_blank','width=1000,height=600,scrollbars=no,resizable=yes\');";
                    ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "alert", s, true);
    </code>

    This works fine, but was wondering if there is anyother way to keep the grid ajaxified and to launch a window without using window.open.

    Thanks,

    Bill.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 Jun 2010 Link to this post

    Hello William,

    Have you tried showing the RadWindow using the approach described in the forum?

    The documentation shows more information on this.
    Setting Server-Side Properties


    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bill
    Bill avatar
    175 posts
    Member since:
    Apr 2010

    Posted 18 Jun 2010 Link to this post

    Shinu, yes...

    I tried that exact same kind of code. By removing the AjaxSettings from the html for that grid where the control was, the window popped up fine; otherwise, if I left the AjaxSetting in there for the grid (to make it ajaxified), the window didn't pop up.

    I also followed the server side setting properties link and did the same thing.

    We are using the 2009.3.1314.35 version of the telerik controls.
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 22 Jun 2010 Link to this post

    Hello William,

    Make sure that you ajaxify the RadWindow as well. If this doesn't help, please open a support ticket and send us a small sample project that can be run locally and that reproduces the problem. This will give us a better view over your exact setup and logic and we will be able to provide you with the most appropriate solution.


    Greetings,
    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
  6. Bill
    Bill avatar
    175 posts
    Member since:
    Apr 2010

    Posted 22 Jun 2010 Link to this post

    Georgi, I tried as you suggested (see attached files), but the opening up of the RadWindow still didn't happen. When I set it back to my original code (window.open in the code_behind & didn't ajaxify the radwindow), it worked fine.

    Please see the attached files as you requested. If you find out how to do it, version upgrade or bug fix, please let me know.

    Thanks,

    Bill.
  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Jun 2010 Link to this post

    Hi Bill,

    What I see from the screenshots of your code is that you have set the RadAjaxManager in such way that the grid updates itself and the RadWindowManager updates itself as well - i.e. there is no connection between these two controls. To be able to show the window when clicking a button in the grid, you should set the grid to update the RadWindowManager (see attached screenshot).


    Regards,
    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
  8. Bill
    Bill avatar
    175 posts
    Member since:
    Apr 2010

    Posted 25 Jun 2010 Link to this post

    Georgi, your solution worked fine.

    Thanks,

    Bill
  9. Ed
    Ed avatar
    124 posts
    Member since:
    Jan 2008

    Posted 27 Sep 2010 Link to this post

    Excellent stuff, Georgi and Bill -- I had this exact same problem and the solution here worked for me too.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017