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

Problems in returning values from window

2 Answers 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
Carlos Marchi
Top achievements
Rank 1
Carlos Marchi asked on 30 Sep 2009, 07:50 PM
Hi Everybody,

I have been trying to solve a problem and I havent found a solution. I hope there is somebody can help me.

There is a page where is a radgrid and a botton where this button valids the grid. Depending on values of gridcolumn there is wrong.

if there is a wrong then a window shows to user. There are two bottons on the window. The user choose which option he/sh wants to do. In any bottons that user clicks the registers of grid can change its values.

Well, I create the window in code behind because I need to verify the grid for seeing its values and then I pass the parameter on querystring. All it happends in runtime, then the necessity to develop it on code behind.

When window shows to user the user can choose what bottons he/she wants to click. In each botton that user clicks return to page that show the window. Of course tha window call this page with value ...

How can I do to window return the value to page that showed the windows?
I need to implement it in code behing. Is it possible to do it?

Thank you for attention,

Carlos

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Oct 2009, 10:00 AM
Hi Carlos,

Try the following approach by attaching ' OnClientClose ' event to RadWindow as shown below and then get the values passed as arguments.

C#:
 
protected void Button1_Click(object sender, EventArgs e) 
    RadWindow widnow1 = new RadWindow(); 
    widnow1.NavigateUrl = "http://www.google.com"
    widnow1.VisibleOnPageLoad = true
    widnow1.OnClientClose = "OnClientCloseFn"
    this.form1.Controls.Add(widnow1); 

The following documentation shows how to passing an argument to OnClientClose handler.
Using RadWindow as a Dialog

-Shinu.
0
Carlos Marchi
Top achievements
Rank 1
answered on 01 Oct 2009, 11:56 AM
Hi Shinu,

I'd like how to declare the onclientclose event  on server-side. In my page window how can i passes of argument for page using server-side too?

Thank you,

Carlos
Tags
Window
Asked by
Carlos Marchi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Carlos Marchi
Top achievements
Rank 1
Share this question
or