telerik rad window open error

7 posts, 0 answers
  1. Sushobhit
    Sushobhit avatar
    26 posts
    Member since:
    Apr 2011

    Posted 03 Nov 2011 Link to this post

    Hi all 

    I have a button in the form and when user click on the open button a new rad window open,after that user click on the close button on the top . after that the  form was closed after that when user click on  the open button again the two new rad window open after that if user select the another time then number of time the rad window open  again so please help me to short out this problem.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Nov 2011 Link to this post

    Hello Sushobhit,

    I cannot reproduce the issue at my end. The following online demo illustrates the same.
    Window / First Look.

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sushobhit
    Sushobhit avatar
    26 posts
    Member since:
    Apr 2011

    Posted 04 Nov 2011 Link to this post

    hi shinu 


    actually problem is that i have asp.net form and on this form have a button . when user click on that button  first time the rad window are opened. after that user closed the window by click on the top close button window is closed .  user again click on the button then the two rad window are opened . so how can i solve this problem? 
  5. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 04 Nov 2011 Link to this post

    Hello,

    try with code snippet

    RadWindow1.VisibleOnPageLoad = false;
    <telerik:RadWindow ID="RadWindow1" runat="server" DestroyOnClose="true"></telerik:RadWindow>


    Thanks,
    Jayesh Goyani
  6. Sushobhit
    Sushobhit avatar
    26 posts
    Member since:
    Apr 2011

    Posted 04 Nov 2011 Link to this post

    hi 


    thanks for your code but my problem not solve.
  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 04 Nov 2011 Link to this post

    Hello Sushobhit,

    I believe you are creating a new RadWindow in every button click and you are setting its VisibleOnPageLoad proeprty to true. If so - you are getting the expected behavior - you add many control instances to the page and you make each of them show when the page reloads.

    If you want to show only one after each postback I strongly suggest you carefully examine the following sticky forum thread on the matter: http://www.telerik.com/community/forums/aspnet-ajax/window/opening-radwindow-from-the-server.aspx.


    Kind regards,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  8. Sushobhit
    Sushobhit avatar
    26 posts
    Member since:
    Apr 2011

    Posted 03 Jan 2012 Link to this post

    Thanks marin for your help that code sample are help to short out the problem ......
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017