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

Open radwindow from inside grid button

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lakmal
Top achievements
Rank 2
lakmal asked on 15 Sep 2009, 06:42 PM
Hi,

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>");"


lakmal




1 Answer, 1 is accepted

Sort by
0
Jake
Top achievements
Rank 1
answered on 15 Sep 2009, 06:58 PM
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.

 

 

 

 

 

 

 

 

Tags
Grid
Asked by
lakmal
Top achievements
Rank 2
Answers by
Jake
Top achievements
Rank 1
Share this question
or