Problems in returning values from window

3 posts, 0 answers
  1. Carlos Marchi
    Carlos Marchi avatar
    21 posts
    Member since:
    Sep 2009

    Posted 30 Sep 2009 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 01 Oct 2009 Link to this post

    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.
  3. Carlos Marchi
    Carlos Marchi avatar
    21 posts
    Member since:
    Sep 2009

    Posted 01 Oct 2009 Link to this post

    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
Back to Top