Open radwindow from inside grid button

2 posts, 0 answers
  1. lakmal
    lakmal avatar
    76 posts
    Member since:
    Jun 2009

    Posted 15 Sep 2009 Link to this post


    I have radgrid. Inside radgrid there is tabstrip. Tabstrip has button. When i click button i want open radwindow. When i open window i want pass querystring as Id filed.

    How can i do that?, Is there any sample?

    I try to do like this. But its not working
      "Response.Write("<script language = Javascript>var win= radopen('DocumentInfo.aspx','RadWindow1');</script>");"


  2. Jake
    Jake avatar
    27 posts
    Member since:
    Feb 2009

    Posted 15 Sep 2009 Link to this post

    Is there a reason you cannot use a standard <input type="button"> control vs. using an ASP button?  Do you need the postback to occur?  If not, that will save you a lot of trouble.

    If you do need the postback to occur you will probably have to register your javascript with the ScriptManager on the page in order for it to execute it after the postback.  Similar to the following:
    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "MyJavaScript", "var j = 0;", true);

    Without registering the script, it will fail to execute.  FYI, this has nothing to do with the grid directly, it's a requirement of ASP.NET.









Back to Top