RadWindow on Button Click

4 posts, 0 answers
  1. Raj
    Raj avatar
    4 posts
    Member since:
    Aug 2012

    Posted 01 Apr 2013 Link to this post

    Hi,
    I need to open RadWindow on button click.While opening the RadWindow i need to call one server function for some updates for that RadWindow, same time the RadWindow should be opened after that update.How to achieve this functionality?

    What i did is like this:
    <asp:Button ID="btn1" runat="server" Text="Click me"
                            OnClientClick="openRadWin();" OnClick="btn1_Click" />


    Thanks
    raj
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Apr 2013 Link to this post

    Hi,

    You can try the following code to open RadWindow.
    C#:
    protected void Button2_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(Page, Page.GetType(), "key", script, true); 
     }

    Thanks,
    Shinu
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Raj
    Raj avatar
    4 posts
    Member since:
    Aug 2012

    Posted 03 Apr 2013 Link to this post

    Hi Shinu,

    Thanks for ur code. one more problem, I have some controls in that RadWindow which has to get updated value. Controls are showing but not with updated value. Can u pls suggest me wat to do on this?


    Thanks
    Rajesh
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 04 Apr 2013 Link to this post

    Hi,

    One suggestion is that you can use RadAjaxManager on page as explained in the following documentation.
    RadAjaxManager

    Thanks,
    Shinu
Back to Top