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

How to open / close radwindow on server side

2 Answers 399 Views
Window
This is a migrated thread and some comments may be shown as answers.
Prava kafle
Top achievements
Rank 1
Prava kafle asked on 07 Dec 2010, 03:30 PM
Hi,

I have Radwindow Manager in page, Radwindow1 is opened  if a condition is met on server side . User closes this window by clicking  "Save"  /  "Cancel"  Button .  If  "Save" button is clicked, information is processed on the server and Radwindow1 is closed.

Logic is:
If(condition1)
{
    Create a new Radwindow and add it to Radwindow Manager
    Open RadWindow1
}


SaveButton_Click( ....)
{
   .......................
   close RadWindow.....
}

Any idea?

Thanks
Prava

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 08 Dec 2010, 07:19 AM
Hello Prava,


You can find some sample code for opening window here (by setting VisibleOnPageLoad property to True).
window from code


Another option is using the RegisterStartupScript() server method to invoke the client method to open/close windows. More information on invoking the client function will be available in the KB Article.
Executing JavaScript function from server-side code


-Shinu.
0
Prava kafle
Top achievements
Rank 1
answered on 08 Dec 2010, 03:36 PM
Thanks, it helped.
Tags
Window
Asked by
Prava kafle
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Prava kafle
Top achievements
Rank 1
Share this question
or