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.
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.
6 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 04 Nov 2011, 06:47 AM
Hello Sushobhit,
I cannot reproduce the issue at my end. The following online demo illustrates the same.
Window / First Look.
Thanks,
Shinu.
I cannot reproduce the issue at my end. The following online demo illustrates the same.
Window / First Look.
Thanks,
Shinu.
0
Sushobhit
Top achievements
Rank 2
answered on 04 Nov 2011, 07:49 AM
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?
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?
0
Jayesh Goyani
Top achievements
Rank 2
answered on 04 Nov 2011, 09:33 AM
Hello,
try with code snippet
Thanks,
Jayesh Goyani
try with code snippet
RadWindow1.VisibleOnPageLoad =
false
;
<
telerik:RadWindow
ID
=
"RadWindow1"
runat
=
"server"
DestroyOnClose
=
"true"
></
telerik:RadWindow
>
Thanks,
Jayesh Goyani
0
Sushobhit
Top achievements
Rank 2
answered on 04 Nov 2011, 09:54 AM
hi
thanks for your code but my problem not solve.
thanks for your code but my problem not solve.
0
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
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
0
Sushobhit
Top achievements
Rank 2
answered on 03 Jan 2012, 01:59 PM
Thanks marin for your help that code sample are help to short out the problem ......