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

Automatically opening window in every post back

4 Answers 94 Views
Window
This is a migrated thread and some comments may be shown as answers.
Vishnu Vardhan Reddy
Top achievements
Rank 2
Vishnu Vardhan Reddy asked on 08 Jan 2012, 06:25 AM
Hello,
Am using Rad Window to show Appointment details by click on Rad Scheduler Appointment.But Problem is,window is Opening in every Post back.I want to open this in only click event. And can i close window,when Page is Post backs.

Thanks And Regards
N.Vishnu Vardhan Reddy

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Jan 2012, 05:18 AM
Hello,

Make sure you set VisibleOnPageLoad as false.

Thanks,
Princy.
0
Genus
Top achievements
Rank 1
answered on 04 Jun 2012, 07:33 AM
But set VisibleOnPageLoad = false is not showing windows.....................
0
Princy
Top achievements
Rank 2
answered on 04 Jun 2012, 08:59 AM
Hi Genus,

Try the following code snippet to open the RadWindow from server side.

ASPX:
<telerik:RadWindow runat="server" ID="RadWindow1" Title="RadWindow1"></telerik:RadWindow>
<asp:Button ID="Button1" Text="open the RadWindow from the server" runat="server" OnClick="Button1_Click" />

C#:
protected void Button1_Click(object sender, EventArgs e)
{
    string script = "function f(){$find(\"" + RadWindow1.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
    ScriptManager.RegisterStartupScript(this, this.GetType(), "key", script, true);
}

Hope this helps.

Regards,
Princy.
0
Genus
Top achievements
Rank 1
answered on 04 Jun 2012, 10:43 AM
Thax a lot..........Princy
Tags
Window
Asked by
Vishnu Vardhan Reddy
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Genus
Top achievements
Rank 1
Share this question
or