Automatically opening window in every post back

5 posts, 0 answers
  1. Vishnu Vardhan Reddy
    Vishnu Vardhan Reddy avatar
    20 posts
    Member since:
    Oct 2011

    Posted 08 Jan 2012 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Jan 2012 Link to this post

    Hello,

    Make sure you set VisibleOnPageLoad as false.

    Thanks,
    Princy.
  3. Genus
    Genus avatar
    2 posts
    Member since:
    May 2012

    Posted 04 Jun 2012 Link to this post

    But set VisibleOnPageLoad = false is not showing windows.....................
    
  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Jun 2012 Link to this post

    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.
  5. Genus
    Genus avatar
    2 posts
    Member since:
    May 2012

    Posted 04 Jun 2012 Link to this post

    Thax a lot..........Princy
Back to Top